Because of CakePHP does not use PHP namepscpaces a best practice is to
prefix all your classes in a plugin with plugin name, if plugin name is
customer change your class to CustomerAccountController or CustomerAccountmodel.
On Tuesday, January 29, 2013 11:51:04 AM UTC-2, Igor Padovan da Silva wr
Use --testdox-text in shell running, this allow to all tests to run with
wich one is failing.
On Tuesday, January 29, 2013 4:28:32 PM UTC-2, Vanja Dizdarević wrote:
>
> Pretty newb at Testing, but I wish to create a list-of-feature-test with
> some useful output.
>
> I have created a test case f
Use $this->set('noslug', 1); instead.
On Tuesday, January 29, 2013 12:41:42 PM UTC-2, MetZ wrote:
>
> Hi all.
>
> I am struggling passing a variable to my before save function in my User
> model.
>
> Controller:
> $this->User->read(null, $data['user_id']);
> $this->User->set(array
There is not a option, if you define a route with /:action you are telling
CakePHP the :action param is required.
Maybe you try make this route using a custom class.
http://book.cakephp.org/2.0/en/development/routing.html#custom-route-classes
--
You received this message because you are subscri
If you use a mock on model, the data is not saved to database and the
findByGuest is always false.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related que
USe the scope option in FormAuthenticate
http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#configuring-authentication-handlers
Em domingo, 15 de abril de 2012 06h00min44s UTC-3, hoss7 escreveu:
>
> hi
> Username and Password is default filed for identifying users in
Mock you SessionComponent to not access the database.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send
Use testAction()
http://book.cakephp.org/2.0/en/development/testing.html#testing-controllers
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions
You just need to name CakePHP session cookie as same with Magento.
Em sexta-feira, 16 de março de 2012 17h38min50s UTC-3, Luchi escreveu:
>
> Hi,
>
> Basically what I want to do is to share my frontend session of Magento
> to an application deployed in CakePHP.
> The structures are:
>
> public
Try adding a mask with correct permission to you cache config:
'mask' => 0664
Em sexta-feira, 9 de março de 2012 12h21min16s UTC-3, heohni escreveu:
>
> Hi,
>
> from time to time I get this error message:
>
> *Warning*:
> unlink(D:\SVN-Homes\...\cache_sql_properties_of_the_week_premium_5) [
> fu
If you just need to put a PHP file on your projeto, just put the file on
webroot folder at app/webroot/pages/SkillsMat/edit_scores.php and your link
will work correctly.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions sit
Please, show you table schema and model association setup.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group,
When calling with $this->redirect( $this->referer() ), what is the result
of $this->referer()?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questio
Yes, its a bug, report this on lighthouse:
http://cakephp.lighthouseapp.com/
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscri
Add the ContainableBehavior to your AppModel class, and when using find:
$model->find('all', array(
'contain' => array(
'Comment' => array(
'conditions' => array(
'Comment.UEB_FKID_SPR_ID' => CakeSession::read('Config.languageID'
)
)
)
)))
--
Our newest site for the community: CakePHP Video Tuto
I always use save($data, array('fieldList' => array())) to protect against
this problem regardless of the SecurityComponent.
Em terça-feira, 6 de março de 2012 18h06min37s UTC-3, nabeel escreveu:
>
> Hi all,
>
> I'm sure we've all heard about what happened with RoR and Github just
> recently -
You could not use the model Eigenschaftsarten using static access, use this:
ClassRegistry::init('Eigenschaftsarten')->find(...)
Em quinta-feira, 8 de março de 2012 05h59min45s UTC-3, heohni escreveu:
>
> Hi,
>
> I have this model 'Eigenschaftsarten'
>
> class Eigenschaftsarten extends AppModel {
You need to disable E_DEPRECATED warning on your php.ini
Or update your CakePHP to 2.1
Em quinta-feira, 8 de março de 2012 08h11min15s UTC-3, Felipe Silveira
escreveu:
>
> PHP Version 5.3.2
> Cake @version $Revision: 7805 $ (1.3).
>
> On Mar 7, 8:47 pm, Miles J wrote:
> > What CakePHP
Check the DirectoryIndex is equal:
DirectoryIndex index.html index.php
And check your AllowOverride is set do all, without this the .htaccess does
not work.
Em quarta-feira, 7 de março de 2012 03h20min15s UTC-3, amg55nj escreveu:
>
> Ok I'll try to see what is wrong with my Apache server. You w
Use:
$this->load('Objeckt); instead of App::uses()
Em terça-feira, 6 de março de 2012 08h14min42s UTC-3, heohni escreveu:
>
> Hi,
>
> class DetailsController extends AppController{
> var $name = 'Detail';
>
> public function index($id){
> if($id){
> $results = $this->Detail->find('first', $co
You could name whatever you want, and use a model on this table.
Em segunda-feira, 5 de março de 2012 07h49min19s UTC-3, Walter Raponi
escreveu:
>
> Hi guys,
> i finally started my first project with cake!
> Have been reading a lot about it but now in real world have a great
> problem!
>
> I'
You need to put element sql_dump on your ajax layout too
Em terça-feira, 28 de fevereiro de 2012 11h30min07s UTC-3, heohni escreveu:
>
> I have debug 2. but it will not return a sql statement, it's an ajax
> based request anyway
>
> On 28 Feb., 14:02, Rodrigo Rodrigues Moyle
Set debug to 2
Em terça-feira, 28 de fevereiro de 2012 06h55min25s UTC-3, heohni escreveu:
>
> well, if I do it like the book says, I get no sql error any more, but
> the if ($this->Auth->login()) fails without any comment.
> In this case, how can I get the sql statement debugged which is
> run
$conditions = array('Formula.formulasId' => $id);
$fields = array(
'materials.description', 'formula.formulasId,
formula.materialsId,
formula.weight');
$instructions = $this->Formula->find('all',
array('conditions' => $c
Use virtualFields!
http://book.cakephp.org/2.0/en/models/virtual-fields.html
Em sexta-feira, 24 de fevereiro de 2012 17h28min10s UTC-2, Łukasz escreveu:
>
> Hi everybody!
>
> I am trying to fetch data with find('list') function and when my
> "fields" attribute looks like array('User.id', 'User,c
Have you tried this plugin:
https://github.com/josegonzalez/upload/tree/2.0
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscrib
Which version are you using?
On cake 1.3 this is the default behavior.
But on cake 2.0 the default is return all errors if none of then have the
last = true
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.
A better way is pre-calculate the values and save on database.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this gr
Create a custom finder for this controller on your model and use only on
this controller:
http://book.cakephp.org/2.0/en/models/retrieving-your-data.html#creating-custom-find-types
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Que
Use the redirect routing
http://book.cakephp.org/2.0/en/development/routing.html#redirect-routing
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related ques
Did you try this:
class PdfHelper extends AppHelper {
public $helpers = array(
"Table" => array(
"className" => "PdftableHelper"
)
);
}
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and hel
Cake automatically load the helpers defined in app_controller even if you
define var $helpers in especific controller.
On Wed, Feb 4, 2009 at 9:26 AM, maxmil wrote:
>
> I have a situation where i want a certain helper included in all of my
> controllers except one.
>
> I would like to be able to
You try to use saveAll?
On Mon, Feb 2, 2009 at 10:16 AM, Graham Weldon wrote:
>
>
> If some association exists between these objects, you can do something
> like:
>
> $this->User->save($this->data);
> $this->User->Site->save(array('Site' => array(
> 'user_id' => $this->User->id,
> // --- a
33 matches
Mail list logo