can u describe your problem more clear please :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2012/6/8 georgio ch
> How can i validate a page inside default layout so that when i change
> page the default content must change or stay the same depends the
> page i am clicking
>
> --
> Our n
Queria saber se alguém ai ja passou por isso.
Se acessar o endereço: http://ponteweb.com.br/admin/grupos/listar
Vai aparecer esta lista abaixo, porém aonde está array(1) { [0] => ...
No lugar de ZERO era pra ter "Grupo".
OBS.:
- Isso acontece somente no servidor, LOCALHOST fica normal.
- Pelos deb
How can i validate a page inside default layout so that when i change
page the default content must change or stay the same depends the
page i am clicking
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.ca
How can i make 3 static pages use the same $content_for_layout and 1
static to use not when i have place that on my default view ?
example
element('_menu'); ?>
Hello there
does anyone knows how to use a slideshow like Cycle. Cakephp version
2 .0
I have read this http://book.cakephp.org/1.3/view/1589/script but with
no luck.
thanks
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions
debug установлен в 2 в app/config/core.php
Но при загрузке любой странице SQL запросы не показываются, а раньше
показывались в самом конце все запросы, было удобно, подскажите плиз
как вернуть фичу.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out t
Its not in front of me at the moment, but I can mock up what I mean.
array(
'Domain' => array(
'name' => 'Foo',
'parent_id' => '85'
),
'Owner' => array(
'color' => '#123456',
'clan_id' => '32'
)
)
This would be valid since clan_id (character_id, coterie_id & covenant_id
bei
I'm pretty sure i know what you are trying to do (in my application an
address model requires one of: flat_number, house_number or house_name).
In your before filter you can add and remove the validation rules based on
what data is available. Can you do a var_dump() of $this->request->data
that'll
I have added the validation rule already to the model and it works when
there is data supplied to it, but I still need a way to force it to run the
rule even if $this->request->data is empty when saving. I need to be able
to tell it to run the rule because even if that field is empty, there might
b
I have done this before in (1.3) but it wasn't a pretty solution.
If your using 2.2 you might want to take a look at this:
http://book.cakephp.org/2.0/en/models/data-validation.html#dynamically-change-validation-rules
You could use that in the beforeValidate() callback of the model and choose
w
If your listing the files of a directory from a controller and displaying
it in a view then htaccess won't help you here.
If there are only a few files that need to be protected from view then i
would keep an array of paths to match against and if the path matches i
wouldn't display it.
On Fri
With the method mentioned above, where you can set up pagination for
related models, how do you display the different pagaintion areas in the
view?
I recently tried to do this but couldn't work out how to display the page
number or sort table headers multiple times in a view
On Thursday, June
http://book.cakephp.org/2.0/en/tutorials-and-examples.html
Run through those and you should be off to a good start.
--
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 Ca
Well, you might have an issue if Bar is not properly setup to point at
Xyxxy since it needs that connection to retrieve the data. I would do a
find on Bar and see if it locates both Foo and Xyzzy.
On Fri, Jun 8, 2012 at 12:43 PM, simo ahalshaba wrote:
> u can use 3 but the request get much infor
u can use 3 but the request get much information
2012/6/8 rihad :
>
>
> On Jun 8, 9:20 pm, simo ahalshaba wrote:
>> change recurssive to 2 and test
>>
>>
> Already tried that. No effect.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the n
On Jun 8, 9:20 pm, simo ahalshaba wrote:
> change recurssive to 2 and test
>
>
Already tried that. No effect.
--
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 CakePH
Hi, I have a model Foo belongsTo Bar, which in turn belongsTo Xyzzy.
When I do $this->Foo->find('all');
sql dump shows that the SQL join is performed only for Foo->Bar, but
Xyzzy is never mentioned.
I tried all sorts of 'recursive' => 1 it didn't matter.
Please help me.
CakePHP 1.3.15
--
Our ne
You seem to be trying to paginate from 2 separate controllers in the
same view.
Is there any way you can have one controller for this view that has
access to both models ? That way, you could use the multiple pagination
method described here :
http://book.cakephp.org/2.0/en/core-libraries/com
While is best practice to start with you data architecture, Cake does
have certain requirements to keep in mind for when you do get around
to code generating. These are worth mentioning, even if they seem
academic.
* Obviously, you want to follow Cake's naming conventions for tables
and fields.
Hi,
I have a view to list all files from a files directory.
For this view, I would like to use a simple htaccess / htpasswd protection.
It's just for internal use to exchange files, so no complex auth is needed.
I copied the htaccess into the view folder, but when I call the page there
is no pro
Helpers are for views, If you care wanting to call it in your model, you
are doing something wrong as it does not conform to the MCV methodology. I
would suggest looking into behaviors as those are traditionally used to
share code between models.
~Michael
On Thu, Jun 7, 2012 at 10:36 AM, ButuzG
So I need to check that at least one field out of four is being set before
I will allow to save. The validation rule works great as long as you have
something sent to it, but since all the option fields have an empty slot,
it would be easy to pass an array with all the right bits of info for that
t
22 matches
Mail list logo