Re: Cake optimization

2012-01-02 Thread Dee Johnson
I would like to have somewhere ~1 sec load time I actually figured out the problem though. When using persistModel = true it actually caused ALOT of unexpected speed results. I removed it and all calls are around 1 - 3 seconds. Also, automagic form elements wont load with it for some

Re: Cake optimization

2012-01-02 Thread Dee Johnson
Thank you for the suggestion, I will give it a try. -- 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

Cake optimization

2011-12-30 Thread Dee Johnson
Hi guys. I have a optimization question. I have already used $persistModel = true, optimized by queries with containable and made sure all tables had indices. I still would like a speed increase as pages are taking at the min 1.5 sec and at the max 8 seconds (on random occasions). I tried

Re: Changing the default CakePHP footer and header

2011-10-19 Thread Dee Johnson
If only I could like your comment -- 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 email to

Re: Issue with an app not displaying properly

2011-10-19 Thread Dee Johnson
did u try the bit about traceroute and trying to access it from IP instead? -- 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

Re: Retrieve extra field with generatetreelist

2011-10-19 Thread Dee Johnson
http://book.cakephp.org/view/1348/generatetreelist I have not used generaltreelist personally but based on the docs above it seems that it works just like 'find' and if you have your relationships set up correctly and you set the recursive attribute to bring back the appropriate data you

cakephp and security

2011-10-18 Thread Dee Johnson
Hi all, I scanned a cake project with a security program called fortify and it came back with 181 errors associated with using the extract function in the core. *Explanation below:* Possible Variable Overwrite: Global Scope (Input Validation and Representation, Structural) The program invokes

Re: Replace user_id to username

2011-10-18 Thread Dee Johnson
awesome! reading this thread assisted with a small issue I was having -- 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

Re: cakephp and security

2011-10-18 Thread Dee Johnson
:) that's what I said, but none the less, I need to fix it. See any issue with changing the argument? -- 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

Re: cakephp and security

2011-10-18 Thread Dee Johnson
this may be true but I have found that it is fleeting to argue those points. With that being said though, if I were to make the alterations mentioned earlier, would there be a conceivable issue? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out

Re: cakephp and security

2011-10-18 Thread Dee Johnson
Fleeting basically meaning it's pointless to argue since the security program mandates that all issues it finds are corrected. I can argue the points mentioned earlier but past experience says they will just want them corrected which would leave me in the position of doing what is needed to

Re: cakephp and security

2011-10-18 Thread Dee Johnson
Yikes. Sounds fair. I will go the route of trying to explain the non issue first and then if that fails to to implement something. Wish me luck -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: cakephp and security

2011-10-18 Thread Dee Johnson
Better yet, (im sure your time is valuable) if you can post a paragraph (or less) on why this isn't an issue that would be greatly beneficial. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

Re: cakephp and security

2011-10-18 Thread Dee Johnson
Thank you sir :) Cake PHP has the best community of all times -- 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

Re: plugin cakephp

2011-10-18 Thread Dee Johnson
I am assuming that you want to make a component? If so please read the following and let us know if this is what you would like to do. http://book.cakephp.org/view/996/Creating-Components also (shot in the dark) read this http://book.cakephp.org/view/1073/Creating-Behaviors -- Our newest

Re: Implementing a search functionality

2011-10-18 Thread Dee Johnson
If I understand correctly you want to search for a literal 'Smith' and not any %Smith% which yeilds results containing Smith as well? If you have a column for last name already you can just alter your find query in the controller to only bring back that specific item $this-Model-find('all',

Re: plugin cakephp

2011-10-18 Thread Dee Johnson
what type of plugin? -- 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 email to

Re: plugin cakephp

2011-10-18 Thread Dee Johnson
http://book.cakephp.org/view/1112/Creating-a-Plugin try this -- 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

Re: make a simple plugin

2011-10-18 Thread Dee Johnson
like referenced in your earlier post, did you take a look at this? http://book.cakephp.org/view/1112/Creating-a-Plugin -- 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

Re: Implementing a search functionality

2011-10-18 Thread Dee Johnson
my apologies, I saw where you said you wanted to make the tutorial simpler and i assumed that you already knew how to make calls etc. The tutorial is using a search behavior (which probably does the calls - i haven't looked to verify) but to answer your question from above, I would recommend

Re: Issue with an app not displaying properly

2011-10-18 Thread Dee Johnson
Can you note any infrastructural differences between wired and non wired users? ( VPN etc ) Are there security settings for the intranet that are different between the 2 groups? how do you access your intranet? Simple sign on? or AD credentials? -- Our newest site for the community: CakePHP

Re: Issue with an app not displaying properly

2011-10-18 Thread Dee Johnson
please post the contents of your routes file -- 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 email

Re: Issue with an app not displaying properly

2011-10-18 Thread Dee Johnson
located at Yourappfolder-app-config-routes.php -- 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 email

Re: Issue with an app not displaying properly

2011-10-18 Thread Dee Johnson
default ... hmmm ... let us know when you get word back about your infrastructure, as of now im leaning to this being an infrastructural thing rather than a cake specific ordeal, but I definitely need more information to be sure -- Our newest site for the community: CakePHP Video Tutorials

Re: Issue with an app not displaying properly

2011-10-18 Thread Dee Johnson
this is an extreme longshot but try this open up run and do a treacetoute from your wired system to the site, then do the same with the wired... when u access the intranet is it from domain alias or IP ? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: Issue with an app not displaying properly

2011-10-18 Thread Dee Johnson
URI on the wireless ... this may help isolate the issue On Tuesday, October 18, 2011 4:07:11 PM UTC-5, Dee Johnson wrote: this is an extreme longshot but try this open up run and do a treacetoute from your wired system to the site, then do the same with the wired... when u access

Re: Cake PHP with Native PHP

2011-05-06 Thread Dee Johnson
shouldn't be. you would have to convert to the MVC style but cake uses php...so yea...it's fine -- 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

HABTM pagination

2011-05-06 Thread Dee Johnson
Hi guys, I would like to make a $this-MODEL-find call but would only like to bring back the items related to that query and paginate the results. I tried $this-paginate('Model', ('model.field' = 'value'); and then looped through the results but it looses the pagination on the related

Re: HABTM pagination

2011-05-06 Thread Dee Johnson
Not sure if you read the question fully or just didnt understand it but I have already read ALL of that and frankly it is irrelevant. :) My issue is not covered anywhere in the cake docs as i have seen. My problem is similar to this guy and I am about to give this a whirl.

Containable

2011-05-06 Thread Dee Johnson
Hi all, I am trying to return some posts based on criteria in a related model. I came across containable in the docs...however it doesn't seem to be working. My understanding is that if I do a find-all using containable it will ONLY bring back those which I specify for the contain parameter

Containable calls

2011-05-06 Thread Dee Johnson
Is there a way to bring back only the posts that satisfy 'containable' conditions? i.e if i ask contain for posts that have an author = tedinstead of just giving me ALL posts and then giving me the related data only on the ones that satisfy the condition, can I ONLY get back the posts that

Paginating HABTM related results

2011-05-05 Thread Dee Johnson
Hi guys, Im having a small issue here. I have a model1 that HABTM model2 before I send the results to the view via a set, I run a foreach loop grab the first bit of results and then another to get to the associated data. the data array at that point (associated data only is being sent to

error in cake console trying to connect

2011-03-14 Thread Dee Johnson
Hi, i fired up the cake console today and this is an error it was giving me...I cannot do anything. Any ideas? PHP Warning: mysql_connect(): [2002] A connection attempt fail nnected party did not (trying to connect via tcp://localhost:3 ake\cake\libs\model\datasources\dbo\dbo_mysql.php on

Re: error in cake console trying to connect

2011-03-14 Thread Dee Johnson
Hi, Cricket, I found the solution pretty much seconds after I posted this. I actually didnt have my local webserver on :) -- 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

Re: error in cake console trying to connect

2011-03-14 Thread Dee Johnson
or at least i found out what was going on. No biggie just more of an oversight. -- 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

Re: Validate from the controller

2011-02-14 Thread Dee Johnson
I'm not 100% sure I understand what you are going for here, but if all you want to do is validate the input THEN save, which is what I gather from your question (please correct me if I'm wrong) then you need to move your validation code to the model and anything else if you want to do before a

Paginate Post Data

2011-02-08 Thread Dee Johnson
Hi. I am posting data (search term) to a controller to run a query and get back subsequent results, which works fine, however when trying to use this with the paginator class moving to the next page breaks everything. My question to the community is, how would I, in my circumstance paginate

Re: Paginate Post Data

2011-02-08 Thread Dee Johnson
thanks for the quick reply but i found the answer while i was waiting on the reply :) In my way you do not have to use GET and the only thing you need to expose to the URL is the term being searched for. here is some code for anyone who may be needing this assistance. Post search term to your

Re: Paginate Post Data

2011-02-08 Thread Dee Johnson
The redirect makes it a GET of sorts but a minimal one -- 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,

Re: RE: Paginate Post Data

2011-02-08 Thread Dee Johnson
Thanks for the post. I wanted to post the bare minimum for people to build off of so your input works for anyone who is reading this. Please note. There are alot of other filtering and things you need to do for your own desired results...this is just to get you started. -- Our newest site

Weird query pagination

2011-02-04 Thread Dee Johnson
Hi Bakers, I have something weird going on and i was wondering if you guys had come across this. I am using the paginator class and that works fine all through my site...but when i call the paginator class on this particular query it paginates the results in the view BUT when i click next it

Re: Weird query pagination

2011-02-04 Thread Dee Johnson
Thanks for the reply, when the page reloads, the same results are shown! It is so weird!!! Ill try the debug($this-params) now. -- 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

Re: Weird query pagination

2011-02-04 Thread Dee Johnson
I did the $this-params and on each page when i click next or on a nother page it registers that it is a new page but says page 1 the following actually came from page 2! [page] = 1 [current] = 10 [count] = 14 [prevPage] =

Re: Weird query pagination

2011-02-04 Thread Dee Johnson
yes it does show myurl/page:2 I am using 1.3.x no special routing and my pagination options are invoked in the head of the controller as follows (and works for all other instances might I add)... var $paginate = array('limit' = 10, 'order' = array('Post.timestamp' = 'desc')); -- Our

Re: Weird query pagination

2011-02-04 Thread Dee Johnson
the only thing that i can say is different is that the parameter needed to form the array comes in the form of an argument which is the only difference...which builds the query...don't know if that should cause this issue though? -- Our newest site for the community: CakePHP Video Tutorials

Re: Weird query pagination

2011-02-04 Thread Dee Johnson
OK, I just changed / simplified the query and it works fine...but when I have all the conditions as mentioned before, the pagination doesn't workis this an issue with cake not being able to handle all of those conditions or is this an issue with an improperly formed query? -- Our newest

Re: Weird query pagination

2011-02-04 Thread Dee Johnson
Turns out it was the query acting wonky...here is a query that embodies everything i wanted but actually worked. $myquery = $this-paginate('Model', array('OR' = array('Model.field1 LIKE' = '%,' . $var . ',%', array('Model.field1 LIKE' = '%,' . $var),