Questions tagged [cakephp-1.3]
This tag relates to the 1.3.x branch of CakePHP MVC framework.
2,089
questions
0
votes
1
answer
55
views
Return results grouped by table while transferring from php mysql to PDO_mysql drivers
Problem
I'm upgrading an old cakephp 1.3 website to use cake 3.x (and beyond) but its sql calls are not returning results in the same format as they did previously. More specifically, it appears that ...
0
votes
0
answers
19
views
CakePHP 1.3.7 - Renaming className in Model file breaks login page
I have an install of Cake 1.3.7 which I inherited from a previous developer for one of my clients. There is a model that includes the following:
var $belongsTo = array(
[. . .]
'TimeSlot' => ...
0
votes
0
answers
39
views
How do I upgrade version of cakephp2.0 to cakephp3 and cakephp4 step by step?
According to the topic, I want to upgrade the cakephp2.0 version to next cakehp3.0 version.
Change version as soon as possible. I have tried but there were change all the files of project and this ...
0
votes
1
answer
315
views
How to check if my Stripe account is in Test Mode?
I'm integrating Stripe into a site built on a CakePHP 1.3 installation and am using the Stripe AIP integrated into CakePHP as a simple Component. I have it working pretty well so far but would like to ...
1
vote
1
answer
276
views
Cakephp1.3 with PHP 8.1
Can I upgrade PHP version 5.2 to PHP 8.1 with CakePHP 1.3?
What will be challenges during upgradation?
We need to to upgrade test cases too.
we want to run cakePHP 1.3 project with latest PHP version ...
0
votes
1
answer
74
views
mysql connection driver to dockerize the cakephp 1.3 application
.env file
export MYSQL_URL='mysql'
export MYSQL_USERNAME='root'
export MYSQL_PASSWORD=''
database.php file
class DATABASE_CONFIG {
public function __construct(){
$this->default['host'] = ...
-2
votes
1
answer
36
views
how do I display cakephp query result in editable form [closed]
how do I display cakephp query result in editable form such that it is displayed in an input form for edit.
The code below displays query result in a table
<?php foreach ($examination as $key => ...
0
votes
1
answer
43
views
how do I display in a cakephp form value from orm in date format
I have the below code in a cakephp templage
echo $this->Form->input('Applicant.application_date',array('between'=>$star,))
the value from the database is a date type and the form displays ...
0
votes
0
answers
69
views
how do I call a public function in one controller from another controller cakephp 2.5
I have 2 separate controllers and I'd like to call a public function in controller1 from controller2, see code below, so in Name2Controller within searchApplicant() function I'd like to call ...
2
votes
1
answer
48
views
How do I access a CakePHP 1.3 view via its controller such that the URL route conforms to application/controller/view
I have defined a Controller in CakePHP 1.3 legacy application running on IIS server windows server 2012, How do I access a view via its controller such that the URL route conforms to application/...
0
votes
1
answer
1k
views
How do I solve HTTP Error 500.0 - Internal Server Error
I am running CakePHP 1.3 setup on a windows 10 PC with Visual Studio Code. I have configured VSCode to use an extension for IIS Express to enable both run and debug for web application using Vscode ...
1
vote
1
answer
248
views
How do I solve Cake is NOT able to connect to the database on IIS Server running CakePHP 1.3.17
I have setup the CakePHP framework version 1.3.17 on IIS server precisely IIS version 10.0.19041.1
all is well, as i can see the index.php page, however it is not able to connect to a MYSQL 8 database,...
0
votes
0
answers
437
views
How do I resolve Cannot use 'Object' as class name as it is reserved in C:\projectfolder\ckphp-demo\cake\libs\object.php on line 33
In working on a new cakephp application I get the error message Cannot use 'Object' as class name as it is reserved in C:\projectfolder\ckphp-demo\cake\libs\object.php on line 33.
The project is a ...
0
votes
1
answer
196
views
Multi input values using foreach and calculating values
<input name="own_pools[]" type="text" value="'.$own_pools.'" id="own_pools" maxlength="5" size="5" >
when i print using: var_dump($...
0
votes
0
answers
30
views
headermap cache got stuck?
In Cakephp 1.3 I have a caching problem: the webroot/img/imagecache/headermap got stuck somehow. I cannot ls or du the contents. The disk device is full and I suspect the headermap being the culprit:
...
0
votes
0
answers
105
views
cakephp 1.3 - how can i allow login with phone_number and username at same time?
please i need in cakephp1.3 to enable user to login with his username or phone_number at same time
i would really appreciates help
i have make a search but most of component in github or other sources ...
0
votes
1
answer
228
views
cakephp button add more / less fields
Hello I am trying to make a button that would allow me to add 2 additional fields to my form: 1 text type fields and 1 multiple choice selector (see image)
fields
I would like to be able to add these ...
-1
votes
1
answer
606
views
CakePHP 1.3 migration To 4.x
Hello I need Some Help ,
I Have a CakePhP Project in version 1.3. I want To migrate in to 4.x is it possible and can anyone Help
what are the steps to follow to migrate from 1.3 to 4.1 CakePhp version
1
vote
1
answer
276
views
Display CakePHP Radio Buttons vertically
I have this radio button and I want the options to be displayed vertically.
$options = array(
'LastMonth' => 'Last full month',
'Last30' => 'Last 30 days',
'LastYear' => 'Last ...
0
votes
0
answers
36
views
Return creates empty record on database on Cakephp 1.3
I have a very strange issue and I can't find any fix for it.
I have the following code:
function convertToComponent($idPryComponent) {
$pryComponentData = $this->{$this->modelClass}->...
0
votes
0
answers
33
views
cakephp does not send an activation
Can anyone Help me ? my cakephp does not send an activation link after registration.
When a user registers, the user does not receive an activation link. Can you help me ? how do i fix these errors?
I'...
0
votes
1
answer
33
views
changes in Controller not detected in ModelBehavior
I've been tasked to make some changes in a big CakePHP app, I'm trying to change a value in $this->data holds data from a form.
Controller
// $this->data['key'] is true coming from a form.
...
...
1
vote
1
answer
510
views
Slashes and backslashes uniform compatibility in PHP for UNIX and Windows
In my PHP code, I have this:
$directory = WWWROOT."img\\".$component."\\ProductTemplate\\";
When I execute my program on a Windows server, I get this:
C:\Users\jaimemontoya\[path]\...
0
votes
1
answer
194
views
How to use special characters with $form->end() in CakePHP
I am using CakePHP 1.3. I know, old version but that is what I have for now. I am trying to have a button with the text "¡Listo!". The code I have tried is:
echo $form->end('aquí', ...
0
votes
1
answer
30
views
Does file copy deployments work with CakePHP?
I have a legacy CakePHP(1.3.13) app, running on Ubuntu server 16.04, on apache. It is using php 5.6. I'm trying to migrate the app to a development server, also Ubuntu 16.04, but running php 7.2.
On ...
0
votes
2
answers
568
views
In CakePHP, how to add a controller file to the /app/controllers/ directory, extending this class from a controller in the /core/cake/ directory?
In core\cake\libs\controller\images_controller.php, I have this class:
<?php
class ImagesController extends AppController
{
....................
function view()
{
.................
0
votes
1
answer
239
views
How to modify $content_for_layout in CakePHP 1.3
I am using CakePHP 1.3. In app/views/layouts/default.ctp I am using this:
<?php echo $content_for_layout;?>
According to CakePHP Application Development, by Ahsanul Bari and Anupom Syam,
"...
0
votes
0
answers
44
views
Add an anchor to the current controller
I have an action in a controller that accepts a form and usually moves on to another action.
It sometimes reloads itself though and in that case, I want it to add an anchor to that reload so the ...
0
votes
1
answer
926
views
Too many redirects error after installing ssl certificate
After installing ssl certificate my site is not working anymore. I am running my cakephp 1.3 site on vps it work just fine without https but when i enable https it through too many redirects error and ...
0
votes
1
answer
57
views
How to correctly create models for recursive joins and the relevant input fields to edit the data for a multi-joined table structure in CakePHP?
I have a typical employees table which has various child tables. One child table, employees_specialties, joins an employee to his various specialties and severities for each specialty. Table structure ...
0
votes
0
answers
78
views
How to get view html in controller cakephp 1.3
I want to send a view in the email body, I have used the below code to get the html:
"tech_comm_email" this is my view.
$this->set('comm_roles', $techid);
$this->set('techid', $techid);
$...
0
votes
1
answer
94
views
Using multiple database sources while writing cake test cases in CAKEPHP 1.3
If I'm running the code via url it is working (eg: http://localhost:8080/projects/emailNewProject/2008098)
But if I'm trying to access it via http://localhost:8080/test.php?show=cases&app=true
it ...
0
votes
1
answer
126
views
How to not require authentication after clicking submit button in CakePHP 1.3
I created a function in a controller and its corresponding view (called 'feedback') for a page that does not require authentication and the URL looks like this:
http://[DOMAIN]/products/feedback/...
1
vote
0
answers
150
views
Ajax submit and replace submit button with checkmark after success
First, I'm not having luck with ajax submitting at all in cakephp 1.3 environment. Once I successfully submit, I'm hoping user stays on page and submit button hidden or replaced with a checkmark. I've ...
0
votes
1
answer
148
views
Cakephp: Update an Array object with equivalent column value in a table
I have stored the below in settings table:
Array(
A => 2, B => 2, C => 0, D => 2,
E => 2, F => 0, G => 2, H => 0,
I => 2, J => 0, K => 0, L => 0,
M ...
0
votes
1
answer
141
views
Google Drive API Requesting Permission for Edit a File (PHP)
How to send Ask Permission request for a spreadsheet owned by another user for edit using google drive api?
There is a user A who owner of the file F, and i want to send a request asking for ...
1
vote
2
answers
335
views
Recreating a CakePHP 1.2 project in order to upgrade
I've got a CakePHP 1.2-based web site (I know.. too ancient) that I need to upgrade only to whatever is the oldest Cake to support PHP 7.1 (I think roughly Cake 2.8, from what I've seen so far), ...
0
votes
1
answer
228
views
In cakephp, how do I access model fields inside custom validations of other model fields?
I have a model in cakephp 1.3. I want to set up a custom validation for my example_id field, which uses the value of example_type field. I only want to have the validation fail if example_type is a ...
1
vote
2
answers
3k
views
CakePHP multiple OR conditions
Im looking to create a simple query but i can't seem to figure out how to do it using Cakes conditions (cake 1.3), what im looking to do is quite simple, in SQL its just
SELECT * FROM table WHERE ...
0
votes
0
answers
61
views
CakePHP 1.3 get all table related data
I have Three TABLES user_log, user and designation.
Here I'm going to take all record in user_log table and should be able to show designation->name as well. but user_log doesn't have ...
1
vote
1
answer
589
views
how to use App controller method in another controller cakephp 1.3
This is cake php 1.3
I have a method in appcontroller called setLog(). I'm trying to use this Method as common for all controllers. but when call this in another controller (Committee Controller ) it ...
0
votes
1
answer
34
views
How to use modal box from different view page to work inside on click function
$(".event_over_time").click(function()
{
//i want the modal box to be opening up on this click function here
});
the modal box opens up on click in a different page in my site i want the same ...
0
votes
0
answers
50
views
migrating cacke 1.3 app problems logging in
I'm trying to migrate an old CackePHP app (v1.3) from one host to another.
I've copied the files 1:1 and the database also by exporting via phpmyadmin.
The old host was an well old host, the ...
0
votes
0
answers
48
views
CakePHP 1.3 Blank White page on VPS but not on shared Cpanel
So I have a CakePHP 1.3 project set up a long time ago and when I put it into the shared cpanel webhost that I bought on some site, it shows the admin login page. But when I put it on my vps it shows ...
0
votes
4
answers
527
views
Convert date in mysql
I have 'dob' field that is varchar type and the data is '12/07/1988' and '10/30/1988' inside my database.
I want to filter the record base on 'dob' date range.My input date range is '01/01/1988' and '...
0
votes
0
answers
186
views
Call to a member function func() on array
While I am trying to call COALESCE function in query builder it shows the fatal error
Call to a member function func() on array" .
Here is my code
$query = $this->Ticket->find();
$...
0
votes
1
answer
103
views
CakePHP calling a function from app_controller from child
Im wondering if someone could help me out a little.
I have a controller called room_controller.php in which i have a function that i want to call a function from the app_controller.php but it doesnt ...
-2
votes
1
answer
103
views
Cakephp 1.3 pagination with search criteria not working as expected
I have set simple search in my project. I need to display the results based on search criteria. When I Click on the second page of the paginate button it shows the whole results means search criteria ...
0
votes
1
answer
71
views
Missing Controller in CakePHP 1.3.21
I'm just new in using CakePHP Framework. so I'm trying to display a view but it says missing controller. here is my code
UsersController.php
class UsersController extends AppController{
var ...
1
vote
1
answer
215
views
PHP walk through flat array to create json string
I'm using an older version of Cake ( 1.3 ).
I have an array which returns the structure of a directory, I have then flattened the array using Set::Flatten() and it outputs the following example;
...