I have tried also $this->Section->children($id), that seems to be ok,
but it doesnt generate such nice nested structure like find
('threaded'). Is there any change to filter threaded array similar
way like getting childs from the tree? Tnkx Tomas
--~--~-~--~~~---~--~--
;
}
return false;
}
On Mar 30, 8:39 pm, "toka...@gmail.com" wrote:
> I have tried also $this->Section->children($id), that seems to be ok,
> but it doesnt generate such nice nested structure like find
> ('threaded'). Is ther
Hi, how can I call method from another controller?
I have read somthing about requestAction(...) but in help they say ...
"It is rarely appropriate to use in a controller or model."
Is there other better way??
Thanks
Tomas
--~--~-~--~~~---~--~~
You received this
Hi, I have got some little issue and I would appreciate if anybody can
help me out :)
In some specific part PHP (not even cake I guess) gives me strange
error.
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 19456 bytes) in /Users/tokasa/www/project/app/views/
Hi,
I am trying to set "return-path:" param in email header... but it is
not working ...I am using cake's email component with this additional
settings:
$this->Email->return = 'exam...@example.com';
I am running Mac OS with XAMPP (localhost) and if I configure php.ini
(sendmail_path), then it wo
is it cakephp BUG or just some wrong apache settings? thanks. Tomas
On 25 kvě, 12:46, "toka...@gmail.com" wrote:
> Hi,
> I am trying to set "return-path:" param in email header... but it is
> not working ...I am using cake's email component with this addit
Nobody ??
On 26 kvě, 06:51, "toka...@gmail.com" wrote:
> is it cakephp BUG or just some wrong apache settings? thanks. Tomas
>
> On 25 kvě, 12:46, "toka...@gmail.com" wrote:
>
> > Hi,
> > I am trying to set "return-path:" param in email he
Hi :), I am trying to switch two elements within controller. The main
idea of this is to have different table layout for NEW posts and
another one for APPROVED, DELETED posts. So i use elements that are
just having different table structure.
I am detecting ajax call with 'isAjax' to render one of
if you prefer jQuery over
> Prototype:http://bakery.cakephp.org/articles/view/easy-ajax-pagination-using-jq...
>
> On Mon, May 4, 2009 at 7:31 AM, toka...@gmail.com wrote:
>
> > Hi :), I am trying to switch two elements within controller. The main
> > idea of this is to have di
Hi, does anybody know if cake offers some text comparison libraries? I
need to compare to versions of text and see visualy differences. like
with colors emphesized what was added, etc...
I have seen on cake's website some thing like that I guess.
Thanks Tomas
--~--~-~--~~---
I have found nice example of such a comparison ...
http://book.cakephp.org/revisions/view/551/the-manual
On May 11, 11:07 pm, "toka...@gmail.com" wrote:
> Hi, does anybody know if cake offers some text comparison libraries? I
> need to compare to versions of text and see vis
Hi,
I am wondering whether it is possible to use counterCache for two
fields... let me explain:
I need to cache count on Post level its (hasMany) images. Now I have
field 'image_count' in Post DB table. and it is working fine but what
to do if I need to cache to different scopes?? It is possible
it is not supported?
thanks Tomas
On Jun 9, 2:55 pm, "toka...@gmail.com" wrote:
> Hi,
> I am wondering whether it is possible to use counterCache for two
> fields... let me explain:
>
> I need to cache count on Post level its (hasMany) images. Now I have
> field
Hi, I am wondering how to handle and recognize MySQL type of
errors...in cake.
For EXAMPLE.. I have integrity checks (ON DELETE) designed on DB
server - when I do delete on some item who has its childs...it is not
allowed by DBso in debug mode in cake i get following..
SQL Error: 1451: Cann
sponding to errors as I've generally found this
> approach saves me time in the long run. I do however, still use constraints
> like this as a last-line of defense to protect against database corruption,
> just in case :)
>
> Hope this helps,
> Richard
>
> On Mon, Jun 22, 20
Hi,
I it possible to make such a URL routing in cake?
subdomain.example.com/categories/category1/category2/category-n
I am wondering whether is possible to specify an URL relatively for N-
levels of nested sub-categories...
imagine you have e.g. eshop with following structure:
*Electronics
***
Hi Adam,
thanks a lot, I did not realize that it is so easy... I have already
try it and it is working. :)
anyway good point with the whole path...
Tomas
On Jun 23, 12:45 pm, "Adam Royle" wrote:
> Setup a route like this:
>
> Router::connect('/categories/*', array('controller' => 'categories',
one more question:) is it possible to route subdomains as well such
easy way? :)
let say that we rout ... subdomain.example.com to index of a
specific controller...
OR this is done in httpd.ini ??
Thanks
Tomas
On Jun 23, 2:26 pm, "toka...@gmail.com" wrote:
> Hi Adam,
>
Hi, anybody has tried saving data when going back in the wizard
component?
Wizard is working nice and is keeping data when going forward. I need
to save data when clicking the back button. Anybody knows how?
Imagine you put some data on STEP2 but you have not continued yet. you
go back to STEP1
rn last
step as the
expected one
if($steps_done == sizeof($this->steps)){
return end($this->steps);
}
}
return false;
}
On Jul 27, 3:49 pm, "toka...@gmail.com" wrote:
&
Hi, I need to set up 'member' prefix for my page with its
localization.
So my address is now ... example.com/member/index
BUT, how can I translate the word member to other language? Let say I
wish to use a spanish word 'miembro' in URL but english word 'member'
as action prefix in the controller.
Hi,
anybody know why cake or PHP native method is returning IP in this
strange format??
getClientIP() fe80::222:41ff:fe2e:b64b
$_SERVER['REMOTE_ADDR'] fe80::222:41ff:fe2e:b64b
PS: I am running apache on MacOS Leopard using XAMPP.
Many thanks
Tomas
Check out the new CakePHP
> Its a valid IP Address through. :-)
>
> On 02/02/2010, at 7:18 PM, toka...@gmail.com wrote:
>
>
>
> > Hi,
>
> > anybody know why cake or PHP native method is returning IP in this
> > strange format??
>
> > getClientIP() fe80::22
anybody pls?
Thanks again.
Tomas
On Feb 1, 11:03 am, "toka...@gmail.com" wrote:
> Hi, I need to set up 'member' prefix for my page with its
> localization.
>
> So my address is now ... example.com/member/index
>
> BUT, how can I translate the word member
Hi, I need to set up 'member' prefix for my page with its
localization.
So my address is now ... example.com/member/dashboard/index
BUT, how can I translate the word member to other language? Let say I
wish to use a spanish word 'miembro' in URL but english word 'member'
as action prefix in the c
Hi, I am trying to set a custom layout for Auth flash message.
setFlast() support that but it seems to be hardcoded in the core for
case of auth messages.
any idea how to set my own layout wrapper around this message ...
"Login failed. Invalid username or password."???
thanks
help apprecia
t; 'flashError')
> );
>
> Jeremy Burns
> jeremybu...@me.com
>
> On 9 Feb 2010, at 14:32, toka...@gmail.com wrote:
>
> > Hi, I am trying to set a custom layout for Auth flash message.
> > setFlast() support that but it seems to be hardcoded in t
pls... :)
On Feb 6, 12:01 pm, "toka...@gmail.com" wrote:
> Hi, I need to set up 'member' prefix for my page with its
> localization.
>
> So my address is now ... example.com/member/dashboard/index
>
> BUT, how can I translate the word member to other langu
Hi nurvzy,
looks interesting any chance to have it working under cake 1.2??
Thanks
Tomas
On Feb 9, 6:32 pm, nurvzy wrote:
> Seems my server seems to be down. While I look into it, you can view
> and download the plugin from the svn
> here:http://www.xp-dev.com/sc/browse/70786/%2Ftrunk
>
>
Hi, how can I pass a MATH operation into SQL via cake??
I try to do this..but cake always quotes the '+ 1' as well, and sql
then treat it as a string...
array('Section.rght' => 'Section.lft + 1')
is there any trick??
Thanks
Tomas
Check out the new CakePHP Questions site http://cakeqs.org an
Hi,
How can I protect my (cake) PHP code when putting my app on
webhosting?
I need to be sure:
1) that nobody can steal/modify the source
2) the security salt value and database.config are somehow
protected...
any idea? I dont have any experience in this area.
Thanks
Tomas
Check out the n
Hi,
How can I escape double quotes when using form helper? Imagine we have
this value with double quotes stored in database: 15" - 16"
How can I render a correct HTML select box? ..now it does this mess !!
15" - 16"
is it a bug?? is there any workaround?
PS1: escape => true is not he
Hi euromark,
I have tried now FALSE as well but it does the same... those quotes
still brakes the html..
Thanks
Tomas
On 25 bře, 13:13, euromark wrote:
> escape should not be true but FALSE in this case
>
> On 25 Mrz., 08:41, "toka...@gmail.com" wrote:
>
> > Hi,
Hi, actually it is not $html->link() but $form->input()
echo $form->input('ERItem.value', array('type'=>$type,
'options' =>
$ERItemsOptions,
'div' =>
false,
Hi, is there a chance to pass simple array via URL?
http://example.com/name:John/name:Tom/name:Susan
Then I should recieve back my array of names array('John',
'Tom', 'Susan');
Any idea how the URL should look like?
Thanks
Tomas
Check out the new CakePHP Questions site http://cakeqs.
il]=.....
Tomas
On 29 bře, 11:59, "toka...@gmail.com" wrote:
> Hi, is there a chance to pass simple array via URL?
>
> http://example.com/name:John/name:Tom/name:Susan
>
> Then I should recieve back my array of names array('John',
> 'Tom',
> On Mar 29, 9:04 am, "toka...@gmail.com" wrote:
>
> > I have solved it. pretty simple.
>
> > examples.com/:controller/:action/?
> > names[]=John&names[]=Tomas&names[]=Susan
>
> > then just call
> > $this->params['url'
te:
>
> > > Is there a reason your passing data like this through URLs? What are
> > > you trying to achieve?
>
> > > On Mar 29, 9:04 am, "toka...@gmail.com" wrote:
>
> > > > I have solved it. pretty simple.
>
> > > > exampl
the idea is to redistribute this to client where cake's library is not
available...
Thanks Miles J for help...
Tomas
On 1 dub, 19:15, Miles J wrote:
> You should use cakes HttpSocket.
>
> http://book.cakephp.org/view/792/HttpSocket
>
> On Apr 1, 12:34 am, "
Hi, is it possible to do "prepared statement" in cake??
http://dev.mysql.com/doc/refman/5.0/en/sql-syntax-prepared-statements.html
if so, how?
Thanks
Tomas
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this mess
Is there any PDO support in cake? PDO is able to prepare and execute
statements...
http://www.php.net/manual/en/pdo.prepared-statements.php
On 12 dub, 11:39, "toka...@gmail.com" wrote:
> Hi, is it possible to do "prepared statement" in cake??
>
> http://dev.my
Hi! Could anybody give me a hint whats wrong?
I am trying to save two keyed model's records at once using saveAll(),
and MySQL gives me that error:
*** SQL Error: 1048: Column 'ip_id' cannot be null
I have main model called "Ip" that hasOne "Backbone" and "Backbone"
belongsTo "Ip" ... (It is very
Hi,
is it possible to recognize that app is running as a SHELL??
I use a simple database switch in app/config/core.php ... I switch
between LOCAL and LIVE database...
I ask simply for domain domain.com OR domain.local
But if I run it trough SHELL, it does not provide this variable
$_SERVER['
working (using Mac OS + XAMPP) so I use
this instead php_uname('n');
http://php.net/manual/en/function.gethostname.php
Thanks
Take care
Tomas
On Mar 15, 5:22 am, Ryan Schmidt wrote:
> On Mar 14, 2011, at 14:33, cricket wrote:
>
>
>
> > On Mon, Mar 14, 2011 at 12:04
44 matches
Mail list logo