there is a model behavior called 'tree'. Have never used it but might
be worth taking a look.
On Aug 2, 12:48 pm, omeck [EMAIL PROTECTED] wrote:
Hi,
I have done menu with submenus. I used relations
Menu hasMany Link
Link belongsTo Menu
I get data by $this-set('menusLeft',
I'd like to take a look. Thanks. benhirsch AT gmail DOT com
On Jul 27, 2:14 pm, Dave [EMAIL PROTECTED] wrote:
I'm working on a Newbie's Introduction to CakePHP book and would like
to invite anyone who would like to review it for errors or
considerations I may have overlooked. Let me know, and
you could use afterSave() in your model. Have it check for the fields
and run another function which emails the user. Sorry it's a bit vague
but so is your question. :)
On Jul 24, 6:56 pm, rtanz [EMAIL PROTECTED] wrote:
hi i have a table containing a number of fields. Is there a way to
make
added Mambo CMS 5.0 [under development]
Click on http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild
- or copy paste it into your browser's address bar if that doesn't
work.
--~--~-~--~~~---~--~~
You received this message because you are
Welcome Mambo team and community!!!
On Jul 24, 8:24 pm, cauld [EMAIL PROTECTED] wrote:
Hello everyone,
My name is Chad Auld. I am the Project Leader for Mambo. Seemed
appropriate to stop by this thread and introduce myself. We are
excited about the decision and looking forward to forming
I want to use beforeValidate() to make some edits to data before it
gets validated (combining 2 input fields, etc.).
Does beforeValidate get called on EVERY save, including on UPDATE? Or
just the initial save?
What is the best practice here. If I want to just look for an initial
SAVE, rather
http://www.google.com/coop/cse?cx=006850030468302103399%3Amqxv78bdfdo
On Mar 19, 12:40 pm, Mariano Iglesias [EMAIL PROTECTED]
wrote:
https://trac.cakephp.org/ticket/1795
Comino soon...
-MI
---
Remember, smart coders
true that.
On Mar 17, 2:38 pm, yolabingo [EMAIL PROTECTED] wrote:
Ditto all above.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To
Actually both seemed to work for me. Thanks to you both. Anyone know
the difference, out of curiousity?
On Mar 12, 8:49 am, jmn2k1 [EMAIL PROTECTED] wrote:
I guess this gives the same error, bc the index is still undefined, so
you should try with isset()
On Mar 9, 9:30 am, jitka [EMAIL
Is there any kind of FTP functions wrapper in Cake? I searched the API
and saw nothing. Anybody making or has made an FTP component?
If not, I will be needing a lot of FTP functions for an app so I may
have to build a component myself (or maybe it should be a plugin?).
Any requests on
I just posted a question like this and got some info:
http://groups.google.com/group/cake-php/browse_frm/thread/aa65e794df4e064a/8d9e875d51f97d2e?lnk=stq=rnum=6#8d9e875d51f97d2e
On Mar 11, 1:52 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Applications like Basecamp and Backpack use the
Take a look at this article:
http://www.thinkingphp.org/2007/02/24/cake-12s-set-class-eats-arrays-for-breakfast/
Dealing with big fat arrays in Cake can be a struggle at first but
using the Set::extract method can pull out a set of the data you need
very elegantly. See how Felix also uses
CakePHP Code for Status, but I did not
find anything suspicious.
I'd be glad for any hint!
On 8 Mrz., 18:00, phirschybar [EMAIL PROTECTED] wrote:
try:
$this-set('test', $this-Rat-findCount('Install_Count = 7',0));
quotes around the 7. does it work? might be because it is a varchar
Ok so I have a bunch of views, called by different controllers that
each reference the same element 'post'. Each controller passes a set
of parameters to the element via the renderElement('post', $data)
method. All the parameters are passed through $data and all is peachy.
However, ONE of the
findAll($conditions = null, $fields = null, $order = null, $limit =
null, $page = 1, $recursive = null);
You can specify the fields you want to return, along with conditions,
limits, just like any basic query.
On Mar 9, 7:39 am, Adrian Maier [EMAIL PROTECTED] wrote:
On 3/9/07, phirschybar
You could do a query like this:
SELECT DISTINCT YEAR(date) AS year, MONTH(date) AS month, count(id) AS
numb
FROM articles
GROUP BY YEAR(date), MONTH(date)
ORDER BY date DESC
This way you get the results grouped by year, with each month and the
number of articles per month. Bam.
On Mar 8,
try:
$this-set('test', $this-Rat-findCount('Install_Count = 7',0));
quotes around the 7. does it work? might be because it is a varchar
On Mar 8, 10:48 am, szeta [EMAIL PROTECTED] wrote:
Hello,
if I'm using
$this-set('test', $this-Rat-findCount('Install_Count = 7',0));
I get a result,
ha! Hey Nate I think the problem may be that it is not immediately
obvious how to attach to the ticket. See what I mean?
What about if we make a page on this group for now??
Ben
On Mar 8, 1:00 pm, nate [EMAIL PROTECTED] wrote:
Wow, uh, okay, I guess I'll take everyone's enthusastic silence to
Brian, is this after you did your apache setup?
On Mar 6, 2:01 pm, Brian French [EMAIL PROTECTED]
wrote:
I'm dealing with his now. the way i have figured it out is to check
the domain in the app_controller.php's beforeFilter() method. Then
look up that user info based on the domain and save
cook
On Mar 6, 1:09 pm, phirschybar [EMAIL PROTECTED] wrote:
This is probably just an apache question but I figure somebody in the
group would know the answer...
My app needs to work so that username.appdomain.com maps to
appdomain.com/username/controller/action/..
Is this a simple
gwoo's method is the way to go. I wouldn't recommend editing the
webroot/index.php
On Mar 4, 4:23 am, gwoo [EMAIL PROTECTED] wrote:
this should work too. In AppController or any other Controller.
Remember to include RequestHandler in your components array.
functon beforeRender() {
I know if you are on linux you could do a symlink (symbolic link) so
that the content of the lightbox images folder can be found in the
default place for images where cake looks or vice versa.
the command is:
ln -s /path/to/folder/with/images name-of-shortcut
does that help?
On Mar 3, 8:21
if you prepend the image path with a '/' like '/img/...' it will trace
back to the web document root and hit the right directory every time.
So wherever you see images/ in the .js file, change it to /img or
whatever you want.
On Mar 3, 12:11 pm, Mech7 [EMAIL PROTECTED] wrote:
The problem is it
I'd love to see somebody try this: http://swfupload.mammon.se/
Yeah, it's flash and 3rd party but it has a nice multiple upload
feature because it uses flash's native upload dialogue. I plan to try
it out on a project soon.
Anybody seen or tried this?
On Mar 2, 11:28 am, Mech7 [EMAIL
3, 6:21 pm, phirschybar [EMAIL PROTECTED] wrote:
if you prepend the image path with a '/' like '/img/...' it will trace
back to the web document root and hit the right directory every time.
So wherever you see images/ in the .js file, change it to /img or
whatever you want.
On Mar 3
.
its either similar or its the same.
The director multi - upload works very well.
On 03/03/07, phirschybar [EMAIL PROTECTED] wrote:
I'd love to see somebody try this:http://swfupload.mammon.se/
Yeah, it's flash and 3rd party but it has a nice multiple upload
feature because it uses
/distributing-cakephp-apps-handl...
On 03/03/07, phirschybar [EMAIL PROTECTED] wrote:
Are you referring to slide show pro director? thats a cakePHP app?
oh I am looking at this:http://blog.bradleyboy.com/interesting. How
do we know it's cake?
Ben
On Mar 3, 4:08 pm, Sam Sherlock [EMAIL
I started a page to feature Cake apps and sites in the wild. Hoping
this will help to garner some more attention on Cake and rally the
community. :)
Click on http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild
- or copy paste it into your browser's address bar if that
some organization.
Click on http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild
- or copy paste it into your browser's address bar if that doesn't
work.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
looks like the survey link is broken.
On Mar 3, 5:46 pm, Olwen Williams [EMAIL PROTECTED] wrote:
I added a couple of mine.
On 04/03/07, phirschybar [EMAIL PROTECTED] wrote:
I started a page to feature Cake apps and sites in the wild. Hoping
this will help to garner some more attention
similar or its the same.
The director multi - upload works very well.
On 03/03/07, phirschybar [EMAIL PROTECTED] wrote:
I'd love to see somebody try this:http://swfupload.mammon.se/
Yeah, it's flash and 3rd party but it has a nice multiple upload
feature because it uses flash's native
Where would those first 2 functions go, ideally? In
app_controller.php? Still getting feet warm with cake. Thanks.
On Mar 2, 12:50 pm, Mandy [EMAIL PROTECTED] wrote:
http://mandysingh.blogspot.com/2007/02/caching-with-cakephp.html
On Mar 2, 3:32 pm, phirschybar [EMAIL PROTECTED] wrote
John,
Thanks for taking the lead on the docs. How is it coming?
On Mar 2, 2:59 pm, John David Anderson (_psychic_)
[EMAIL PROTECTED] wrote:
On Mar 2, 2007, at 11:54 AM, [EMAIL PROTECTED] wrote:
If you are going to continue developing with cakePHP get used to this.
I love cakePHP for a
OK.
So this: var $uses = array('Category'); is the key here. Because I am
doing a beforeFilter(), my model wasn't loaded yet.?
On Mar 1, 8:58 am, Samuel DeVore [EMAIL PROTECTED] wrote:
On 3/1/07, AD7six [EMAIL PROTECTED] wrote:
On Mar 1, 2:49 am, Samuel DeVore [EMAIL PROTECTED] wrote:
AD7 and Mariano, thanks. Yeah I'll be digging through the source
before long ;)
On Mar 1, 11:12 am, Mariano Iglesias [EMAIL PROTECTED]
wrote:
Models are instantiated before running beforeFilter(). You can see this by
looking at dispatch() in class Dispatcher, located at cake/dispatcher.php:
I see lots of info on caching views in the manual but I am wondering
of I can cache an object as easily. Just a simple array of data so
that I do not have to hit the DB on every page.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Hey all..
What if I have an element and I want to switch it on for some pages
and off for others?
I could easily pass it some data and do the logic to determine if it
should be shown right within the element itself or even in the default
layout but then I would have business logic right in the
/cake-php/browse_thread/thread/77860241...
~GreyCells
On Feb 28, 7:44 pm, phirschybar [EMAIL PROTECTED] wrote:
Hey all..
What if I have an element and I want to switch it on for some pages
and off for others?
I could easily pass it some data and do the logic to determine if it
should
I am trying to make it so that some data to an element is present on
EVERY page on my entire app. So, to do this I made an
app_controller.php in /app and I have the following:
class AppController extends Controller {
function beforeFilter() { // grab all of the categories.
/chapter/controllers
On 2/28/07, phirschybar [EMAIL PROTECTED] wrote:
I am trying to make it so that some data to an element is present on
EVERY page on my entire app. So, to do this I made an
app_controller.php in /app and I have the following:
class AppController extends Controller
To link an image I am doing:
$html-link($html-image('image.jpg', array('border' = '0')), '/',
null, null, false);
is there a better shortcut I am missing?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP
yeah. good idea. thanks!
I was just curious to know there was something in the core already.
Appreciate it!
On Feb 27, 1:26 pm, Daniel Hofstetter [EMAIL PROTECTED] wrote:
That's the correct way. If you want it shorter, you could write your
own helper. Something like
class ImageHelper
you can ask for just the specific fields but if the other fields aren't
too heavy (in terms of bytes of returned content) I don't think there
is a reason to do so. I would avoid using a custom query unless you
absolutely need it. You are able to specify the fields you want
returned without using
Are all of the items in your hierarchy one type of data? In other
words, are they all in one table with an association of has and
belongs to many?
Ben
On Dec 26, 7:32 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I have a situation where I know the id of a child, but I need the
parental
with a parent_id
field. This is pratically identical to how it laid out in this
example:http://bakery.cakephp.org/articles/view/63
On Dec 26, 5:08 pm, phirschybar [EMAIL PROTECTED] wrote:
Are all of the items in your hierarchy one type of data? In other
words, are they all in one table
If the movie is grabbing data every time it is loaded, the issue is
probably not with caching the actual flash movie but maybe the DATA the
movie is grabbing from the controller is coming from a cached source.
If you need it to be fresh on every page load, make sure that it is not
grabbing the
gabordemeter:
sorry I missed the part about it working in FF. But still doesn't the
SWF have to grab the data on every load, even if the SWF is cached?
Claudio:
to satisfy my curiosity.. what file do you think IE is caching?
On Dec 25, 11:25 am, Claudio Poli [EMAIL PROTECTED] wrote:
no
http://www.thinkingphp.org/2006/09/25/learning-from-the-cakephp-source-code-part-i/
Here is a nice little summary in 2 parts. Helps with getting going...
On Dec 23, 3:55 pm, keymaster [EMAIL PROTECTED] wrote:
It would be very helpful while debugging if there was some
documentation on the
48 matches
Mail list logo