Saturday, December 21, 2013

Re: Looking for Help with Cakephp basics .. aka looking for a mentor

When I get back from my Christmas break, I'll have a look at a bit of code I usually stick in my AppController or AppModel (it's been that long, I cant quite remember where it sits), but basically, it uses convention to recognise a file upload, and will save the file contents to a database field.

For a Search tool, I'd recommend Lucene for indexing, and do local HTTP calls to get the search results.  I think Zend may even have a PHP lib to assist with Lucene, but at some point, you're going to have to get your hands dirty and actually set it up (it's Java based).  Actually, scratch that.. use Apache SOLR. It sits on top of Lucene, and provides the HTTP API.

Pagination is pretty simple. The Pagination component assist with defining the query, and getting the data.  The Pagination Helper assist with display of numbers and first, last, next, previous options.  I usually do an element to roll all those things into one call from the view.

Breadcrumbs are easy if a page is only available from one menu option.  They can get a bit trickier if a page can exist at two menu options, and you don't know which one ( I give you the mess that is Joomla's ItemID, used to identify a page displayed on a particular menu).

Anyway, you have a good Christmas, too.


On Sat, Dec 21, 2013 at 2:12 AM, Silver Troy <educatedrisk@gmail.com> wrote:
Hello Reuben,
  I want to thank you for that well thought reply, the answers and pointers you have given me.  I really do try and find the answers through google, the cook book, youtube and irc.  I just know that sometimes people can answer your question in a couple minutes that will save you hours of wasting your time.
I have read through the cook book a few times already and though it does give some basic examples it lacks answering common problems.

I have done the blog tutorial, expanded it with Andrew Perkins youtube tutorials to add in authorization.  I have built a basic administration section and a user account section with routing (that took way too much time messing around).  I have been able to create form dropdowns that get populated from other models, and I recognize the data['User']['purchased']['year']  from the examples.  I have built a number of different sections like products, manufacturers, dealers, deals, users using the basic scaffolding. 

I do need to get into the Category Tree Structure, which I have looked into a number of examples, going to need to implement Pagination, Breadcrumbs and a proper Search tool (that works with multi-word searches).  Not to mention uploading multiple images for a product with a main (or default) image set.  I have been looking into using a plugin to do the image upload but that has been challenging to get one installed and working properly.

The next time I post .. I will keep it to one problem and try and layout what I have done.

Have a good Christmas.


--
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 a topic in the Google Groups "CakePHP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cake-php/OsnN5POIi3w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: