Re: Querying / filtering an array done by find('threaded')

2009-03-30 Thread toka...@gmail.com
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 --~--~-~--~~~---~--~--

Re: Querying / filtering an array done by find('threaded')

2009-03-31 Thread toka...@gmail.com
; } 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

how to call method from another controller?

2009-09-09 Thread toka...@gmail.com
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

app problems after upgrading cake to newer versions.. [within 1.2.4.xx] ?

2009-09-09 Thread toka...@gmail.com
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/

email header with variable Return-path:

2010-05-25 Thread toka...@gmail.com
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

Re: email header with variable Return-path:

2010-05-25 Thread toka...@gmail.com
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

Re: email header with variable Return-path:

2010-06-01 Thread toka...@gmail.com
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

How Force Paginator to Use AJAX by default?

2009-05-04 Thread toka...@gmail.com
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

Re: How Force Paginator to Use AJAX by default?

2009-05-11 Thread toka...@gmail.com
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

text comparison highlight

2009-05-11 Thread toka...@gmail.com
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 --~--~-~--~~---

Re: text comparison highlight

2009-05-11 Thread toka...@gmail.com
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

counterCache ... TWO fields with different counter scope??

2009-06-09 Thread toka...@gmail.com
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

Re: counterCache ... TWO fields with different counter scope??

2009-06-18 Thread toka...@gmail.com
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 &#

handling MySql errors

2009-06-22 Thread toka...@gmail.com
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

Re: handling MySql errors

2009-06-22 Thread toka...@gmail.com
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

n-categories URL routing

2009-06-23 Thread toka...@gmail.com
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 ***

Re: n-categories URL routing

2009-06-23 Thread toka...@gmail.com
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',

Re: n-categories URL routing

2009-06-23 Thread toka...@gmail.com
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, >

data SAVE when clicking back button - (wizard component)

2009-07-27 Thread toka...@gmail.com
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

Re: data SAVE when clicking back button - (wizard component)

2009-07-27 Thread toka...@gmail.com
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: &

custom Routing prefix internationalization - URL translated AND action name not ???

2010-02-01 Thread toka...@gmail.com
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.

getClientIP ?? strange format...

2010-02-02 Thread toka...@gmail.com
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

Re: getClientIP ?? strange format...

2010-02-02 Thread toka...@gmail.com
> 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

Re: custom Routing prefix internationalization - URL translated AND action name not ???

2010-02-04 Thread toka...@gmail.com
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

localized routing prefix

2010-02-06 Thread toka...@gmail.com
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

Auth flash message LAYOUT ???

2010-02-09 Thread toka...@gmail.com
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

Re: Auth flash message LAYOUT ???

2010-02-10 Thread toka...@gmail.com
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

Re: localized routing prefix

2010-02-10 Thread toka...@gmail.com
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

Re: New Facebook Plugin with Facebook Connect

2010-02-10 Thread toka...@gmail.com
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 > >

sql expression in CAKE?

2010-02-11 Thread toka...@gmail.com
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

protect source code & security salt ...

2010-03-08 Thread toka...@gmail.com
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

form helper ESCAPING quotes character values?? a bug?

2010-03-25 Thread toka...@gmail.com
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

Re: form helper ESCAPING quotes character values?? a bug?

2010-03-26 Thread toka...@gmail.com
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,

Re: form helper ESCAPING quotes character values?? a bug?

2010-03-29 Thread toka...@gmail.com
Hi, actually it is not $html->link() but $form->input() echo $form->input('ERItem.value', array('type'=>$type, 'options' => $ERItemsOptions, 'div' => false,

How to pass an array trough URL??

2010-03-29 Thread toka...@gmail.com
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.

Re: How to pass an array trough URL??

2010-03-29 Thread toka...@gmail.com
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', &#x

Re: How to pass an array trough URL??

2010-03-29 Thread toka...@gmail.com
> 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'

Re: How to pass an array trough URL??

2010-04-01 Thread toka...@gmail.com
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

Re: How to pass an array trough URL??

2010-04-01 Thread toka...@gmail.com
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, "

mysql prepared statement in CAKE?

2010-04-12 Thread toka...@gmail.com
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

Re: mysql prepared statement in CAKE?

2010-04-12 Thread toka...@gmail.com
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

saveAll(..) + hasOne NOT WORKING !! ... is it a bug?!

2012-01-19 Thread toka...@gmail.com
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

how to recognize App in SHELL mode?

2011-03-14 Thread toka...@gmail.com
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['

Re: how to recognize App in SHELL mode?

2011-03-15 Thread toka...@gmail.com
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