cakephp-2.0 Questions
3
Solved
I'm currently upgrading one of our projects to CakePHP 2.0. Unfortunately the "first line" of code makes problems, and I can't find a solution to that problem.
In CakePHP 1.3 I had an App::import(...
Kaden asked 16/11, 2011 at 20:20
3
I am getting this error on my first attempt of CakePHP:
Undefined variable: html [APP/View/Posts/index.ctp, line 13]
I have version 2.0-alpha, have I got the wrong version or what has changed ...
Ruwenzori asked 23/8, 2011 at 14:12
3
Can anyone explain to me how to use a 'view block' in CakePhP 2.0?
I have read the documentation on the cakephp site but it misses a lot out for the novice user... e.g. what files do I need where...
Barogram asked 11/10, 2013 at 10:51
2
Solved
I'm using this Cakephp StripeComponent plugin : https://github.com/chronon/CakePHP-StripeComponent-Plugin
Everything is working fine but I can't cancel the subscription with this plugin.
I had tr...
Slotter asked 21/10, 2016 at 10:59
2
Solved
I am facing a weired issue. I have written code for pagination. Everything is working as expected, but only conditions are not working(only certain conditions)
Here is my code for pagination.
//d...
Christchurch asked 18/8, 2016 at 11:8
2
Solved
I used to do some config with "routing.prefix" in cakephp2. It was in the file core.php.
I notice there is no core.php in Cakephp 3. What is the equivalent of core.php in cake 3.
Delightful asked 26/7, 2016 at 8:16
5
Solved
For CakePHP 2.3.8 How can I call Another Controller function in CronController.php
Any ideas?
Hoffmann asked 13/10, 2013 at 12:5
3
Solved
I am trying to run a query in AppController on a table that has no Model associated with it. I don't want to use a Model cause this query would fire on every request and I guess using a Model would...
Nearly asked 15/6, 2012 at 9:45
2
Solved
We want to use the FPDF library in one of our controllers.
We created the following files:
app
-Lib
--Fpdf
---files.php
---fpdf.php
---fdpf_wrapper.php <-- this is our class (FdpfWrapper) whic...
Neoteric asked 1/10, 2013 at 15:38
4
Solved
In cakephp there is one file core.php
It contains
Configure::write('Security.salt', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
How can i get the value of Security.salt in controller in cakephp...
Entrant asked 27/9, 2013 at 7:19
2
Solved
I have noticed there's no datasource for Oracle in CakePHP 2.0 for the moment, although it seems they are working on in it now: http://ask.cakephp.org/questions/view/any_news_about_oracle_datasourc...
Ether asked 17/1, 2013 at 10:16
1
Solved
I already answered my own question but I wouldn't mind accepting any other answer that is really better than my approach (do mention how it is better). Please contribute.
I had a situation where...
Nine asked 24/2, 2016 at 6:10
4
Solved
Is it possible in CakePHP to organise controllers (and models) in subfolders? Thanks.
Addend asked 12/1, 2012 at 13:48
3
Solved
I am using cakephp2. How to delete a single record with a condition ?
I have a table named posts with fields id,title,post. primary key is id. I would like to delete the single record with id=5 ?
...
Sheela asked 29/4, 2013 at 10:9
3
Solved
i have a problem similar to this question
How to identify active menu link in CakePHP
i have a page in my default.ctp file in which i want to add 'active' class on links. how can i identify the ...
Lanner asked 18/6, 2013 at 6:31
1
I create a application with CAKEPHP it works fine. When I transfer from one server to another server it create some problem.
I have changed file permission ap/tmp folder with 777 still give error
...
Gratification asked 2/4, 2015 at 8:21
4
Solved
I'm getting the error referenced in the title from a file that doesn't reference the Debugger class. If I manually import Debugger, the error still shows up. The line number referenced in the error...
Repand asked 2/5, 2012 at 13:53
7
Solved
I have a set of selects for a date of birth:
<?php echo $this->Form->input('Profile.dob', array('label' => 'Date of Birth'
, 'dateFormat' => 'DMY'
, 'minYear' => date('Y') - 10...
Unwearied asked 31/12, 2011 at 12:57
2
Solved
OK I must be missing something really simple here. I just want to return all records from a table where the user_id matches (easy!) and the 'paid' field is either NULL or 0. My 'paid' field is a Ti...
Thinker asked 12/11, 2012 at 6:48
6
Solved
I'm trying to figure out how to use one of my view elements inside of a controller...
I know, I know: "Don't do that!" (99% of the time this is the correct answer)
But I think I actually have a g...
Muhammad asked 18/4, 2013 at 13:35
2
I'm working on a cakephp project and new to cakephp. As mentioned in the title I need to paginate the result set of a mysql query in order to display them in a view.
In this way I can paginate res...
Continual asked 5/6, 2015 at 10:16
2
Solved
I am trying to share post using twitteroauth with latest version. Below is my code.
require APP."Vendor/twitteroauth-master/autoload.php"; // twitter v0.5.1 SDK
if(isset($_REQUEST['oauth_verifier...
Kriskrischer asked 21/2, 2015 at 14:20
4
Solved
The error log of my CakePHP app is full of 404 errors. Can I exclude these MissingControllerExceptions from appearing in the error log? Using Cake 2.3.
Ardrey asked 24/3, 2014 at 10:58
3
I'm trying to implement a translation in Cakephp but isn't working and don't show me any erros.
I have this HTML in a element
<a href="/sites/pages/servicos" target="_blank">
<span clas...
Guillemot asked 29/4, 2015 at 14:4
2
Solved
I am being shown the following error on top of my page when using beforeSave method in my Upload model.
Strict (2048): Declaration of Upload::beforeSave() should be
compatible with Model::befor...
Herpetology asked 26/4, 2015 at 1:4
© 2022 - 2024 — McMap. All rights reserved.