cakephp Questions
3
Solved
The database I'm working on has more than 100 tables, so I'm not going to sit here baking a model and controller for each one individually. I would like to bake all of the tables at the same time w...
Pounds asked 19/9, 2013 at 15:44
2
Solved
I'm using CakePHP v3.x and I'm trying to figure out how to insert some records via the migrations tool. The documentation only lists methods for modifying the schema. Will I need to insert records ...
Lead asked 8/6, 2015 at 15:13
2
Solved
I am working on migrations in Cakephp3, I want to rollback a specific migration, I know how to rollback a previous migration by using the follow way:
bin/cake migrations rollback
But I couldn't ...
Elevator asked 15/10, 2016 at 6:23
13
Solved
I'm having small troubles and was wondering if someone can help me over the hump. I pulled a copy of a website down from Hostgator and I'm trying to set it up on my local machine using WAMP but, I ...
Lurk asked 17/9, 2013 at 14:49
16
Solved
This must be something utterly stupid that I've done or am doing, but I have an input with a value attribute that simply isn't being displayed:
<div class="input text required">
&l...
Rabies asked 24/4, 2011 at 17:39
4
I followed the CakePHP tutorial and till now everything worked fine(newly added articles are shown in the db). But now that I tried to "bin/cake bake model users" I get the following erro...
7
Solved
I'm getting this error when I upload my application to linux. This is working fine on my local windows system but gives me error on linux server. When I search regarding this then I found this is s...
Unending asked 22/7, 2015 at 5:32
2
Solved
I'm trying to find out if a similar record already exists in the DB before I go ahead and save a record. I've googled and found what looks like it should work but unfortunately doesn't. I'm new to ...
2
Solved
I am wondering, is there a function that allows me to check instantly if a record in the database exists?
Right now I am using the following piece of code to detect if a record exists, but I can i...
12
Solved
Using CakePHP:
I have a many-to-one relationship, let's pretend it's many Leafs to Trees. Of course, I baked a form to add a Leaf to a Tree, and you can specify which Tree it is with a drop-down b...
Necrophobia asked 9/10, 2009 at 19:57
3
Solved
I am getting following errors after updating php to version 5.4
Strict Standards: Non-static method Debugger::invoke() should not be called statically, assuming $this from incompatible context in ...
2
Solved
I have a table in which comma seprated id of another table i want to use the following query in cakephp in proper form with find function
"select * from special_offers where find_in_set('".$store...
Stepparent asked 3/3, 2012 at 9:43
7
Solved
CakePHP 3: I have a database field which is a DATE (not DATETIME nor TIMESTAMP)
When I display
echo $contact->date;
It will show something like 2014. 01. 06. 0:00. How to hide hours and minu...
Theurer asked 25/10, 2014 at 9:59
2
Solved
I read documents and I am not able to get it how to get Security.salt value from app.php in Cakephp 3. I am trying to get it like this
$salt = Configure::read('Security.salt');
Importing follow...
Congdon asked 27/7, 2017 at 7:16
6
In my application I am using a div element. There is some extra space found below and above the div element.
How can I remove that?
Thanks
4
Hi I am trying to setup a project using composer.
I am able to install CakePHP but I am getting a hard time installing cakephp/debug_kit on a custom direcoty. I am trying to install it on "vendor/c...
Childish asked 12/5, 2013 at 11:27
10
Solved
I'm moving some of my find code inside models.
Previously in my controller I had
$this->Book->Review->find('first', array(
'conditions' => array(
'Review.book_id' => $id,
'Revie...
Tyson asked 27/1, 2010 at 20:24
6
Solved
Hi I want to be able to generate a list using find so that I can use in select helper. but there is a problem. i want too fetch id,name(first + last). so how can I achieve it. I want first_name and...
Usage asked 24/9, 2010 at 9:34
18
Using the CakePHP docs, I am trying to install 3.0-beta2 using composer but I got this error:
cakephp/cakephp 3.0.x-dev requires ext-intl * -> the requested PHP extension intl is missing from...
Daly asked 9/10, 2014 at 18:13
3
Solved
Here is my cakephp generated HTML radio box and text box script:
<input type="radio" id="need_staff_on_site" name="data[CaterRequest][need_staff_on_site]" value="yes" class="staff_on_site">&...
5
Solved
I am using this query, but it is not returning ctotal. Please help.
$total = $this->RequestedItem->find('all',
[
'sum(cost * quantity) AS ctotal',
'conditions' => [
'RequestedItem.pu...
Schram asked 11/2, 2011 at 15:55
6
Solved
I am trying to install cakePHP 3.0.0 with WT-NMP, but i got this message:
CakePHP is NOT able to connect to the database.
Database driver Cake\Database\Driver\Mysql cannot be used due to a
m...
6
Solved
I want a regular expression code which allows only numeric phone number (e.g 1234567890) as well as GB format number (e.g 123-456-7890).
This expression must have to work for both conditions.
Cur...
Streetwalker asked 17/7, 2012 at 7:41
4
Solved
Is there a way to format the $this->find('all') array into the $this->find('list') in the view? The reason I ask is so that I can pass that new array into the form helper options and then use the $...
7
Solved
I'm getting the following error in my CakePHP application:
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the lim...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.