Have you checked that your production server is properly configured? Ensure
mod-rewrite is enabled, also it could be an issue with your vhost
configuration as well.
Maybe try to access new.domain.com/app/webroot/css/stylename.css to confirm
it's the url rewriting. Also check out the server access/
This is the complete method of my LanguageHelper. The two lines should make
the finally output.
$options = array_merge(array(
'label' => __('Country', true),
'default' => $this->defaultCountry,
'class' => null
), $options);
$selected = $
Thanks for your answer. I want to make a LanguageHelper where languages and
options are set in the method. These two lines should print it out.
$options = array_merge(array(
> 'label' => __('Country', true),
> 'default' => $this->defaultCountry,
> 'class' => nu
CakePHP custom ACL Authorization using acos, aros & aros_acos Acl tables
with extension api_
I am developing an restful API using CakePHP, I am trying to implement a
custom authorization which authorize user using ACL, code looks something
like
_Collection->load('Acl');
list($
You are not doing something right. Can you show more code with the debugged
output please? Cracking this and understanding what is happening will help you
enormously with developing Cake apps from here.
On 5 Jun 2014, at 15:18, ajt wrote:
> I set recursive to -1 and it doesnt work as I get us
Ok, so it appears my routes aren't working, I can't go to my pages either.
Hmmm...
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscrib
I just realized that I forgot to mention that I'm using cake version 2.4.9
and php unit 3.7.30
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
Hello all,
So I have a controller that uses the RequestHandler and has some
actions named with camelCase names. Running the tests via command line
works just fine, however the test.php process of running the test result in
a MissingControllerException with a message of "Controller class
Te
Yes this works without recursive
$contain = array('Teacher' => array('User'),'Student' => array('User'));
$this->set('tutor', $this->Tutorsession->find('first',array(
'conditions' => array('Teacher.user_id' => $id),
'contain' => $contain
)));
--
Like Us on FaceBook https://w
I set recursive to -1 and it doesnt work as I get user error again.
Recursive set to 2 is what works
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" gro
Thanks Stephen :)
On Thursday, June 5, 2014 2:17:04 PM UTC+1, Stephen S wrote:
>
> You can place constants in bootstrap.php, though I usually create a
> site-specific config file and include it within bootstrap.php
>
> In config file:
> Configure::write('MyConstant', 'My Value');
>
> In view fil
With the Containable behaviour you should set recursive to -1. Recursion makes
the model automatically attache related models n deep (where n is your
recursion level) so can give unexpected (or at least uncontrolled) results.
When it is -1 it only returns the model associations you specify. The
yes thats it, I just didnt know how I referenced it and with this code.
This took hours to solve so well done
$this->Tutorsession->recursive = 2;
$this->Tutorsession->Teacher->contain('User');
$this->set('tutor', $this->Tutorsession->find('first',
array(
Isn't $tutor['Teacher']['User']['username'] what you're looking for?
On 5 Jun 2014, at 14:18, ajt wrote:
> There just is no user being displayed with the below, there is with Teacher
> in the find if I add it but every field is undefined in the view.
>
> $this->Tutorsession->recursive = 2;
There just is no user being displayed with the below, there is with Teacher in
the find if I add it but every field is undefined in the view.
$this->Tutorsession->recursive = 2;
$contain = array('Teacher' => array('User'));
$this->set('tutor', $this->Tutorsession->find('first',array
You can place constants in bootstrap.php, though I usually create a
site-specific config file and include it within bootstrap.php
In config file:
Configure::write('MyConstant', 'My Value');
In view file:
Configure::read('MyConstant'); // My Value
On 5 June 2014 13:06, vbpupil wrote:
> How be
How best can I add constants to my cake application to be used in my views?
for example, I have differnt paths for different types of images ie;
internal images, external images
I have read many comments on bootstrap, use it/dont us it?? so where would
be best and cleanest to use it?
please
It's best to upgrade all the way to the current master, so 2.5.
But you can fix all 1.2=>1.3 upgrae issues first if that helps.
Am Donnerstag, 5. Juni 2014 06:14:13 UTC+2 schrieb passe...@gmail.com:
>
> I have an app in version 1.2. Is it better or easier to upgrade to
> v1.3.14 or should I go
I have an app in version 1.2. Is it better or easier to upgrade to v1.3.14
or should I go with v2.5 directly?
On Friday, May 16, 2014 9:06:42 AM UTC-4, k2014 wrote:
>
> dear,
> i need to know the vulnerabilities and security problems of the v 1.3.14
> and
> if you can recommend me a better v
Now, the homepage is working fine but every link on it directs you to a 404
not found error. Can't even access "/admin".
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google
All the extra directives in the /extra/ .htaccess file may be too much.
All I have is:
> RewriteEngine on
> RewriteBase /app/
> RewriteRule ^$ webroot/ [L]
> RewriteRule (.*) webroot/$1 [L]
On Tuesday, May 27, 2014 2:11:16 PM UTC-4, Tomas Gonzalez Mendivelzúa wrote:
>
>
> Hi, I'm trying to run
21 matches
Mail list logo