Re: Which editor for Mac OS X?

2009-01-25 Thread Janoma

I'd go for Smultron, though I don't think the newest versions work on
non-intel macs.

On Jan 23, 11:01 am, leo  wrote:
> Having spent months trying to find an adequate editor for Windows, I
> eventually settled on Komodo. Now I'm working on a Mac and Komodo is
> available, but version 5 is so slow it's unusable. I reverted to v4,
> but while it is a little quicker it is also a little unstable. It is
> still slow enough  to be irritating - 2 seconds to switch tabs;
> sometimes it doesn't load the plugins, sometimes it will not maximise
> properly.
>
> Okay, I'm not using a cutting edge Intel Mac, I'm on a G4 / Leopard,
> but it's still a reasonably powerful machine (it'll run Photoshop and
> Illustrator simultaneously without grinding to a halt).
>
> Can anybody suggest a non-java based editor (I do not like Eclipse or
> NetBeans or anything Java come to that)? I've tried Xcode, but it
> seems really clunky and not at all geared to PHP. It needs to have
> project handling like Komodo, code intelligence and above all, it must
> be free.
>
> Maybe a Macport of Bluefish - anybody tried that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Authentication: logged user data

2008-07-15 Thread Janoma

Thanks!

I wasn't using Auth in a proper way, though it's quite straightforward
actually.

On 14 jul, 18:03, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> http://book.cakephp.org/view/172/authentication
>
> 2008/7/14 Janoma <[EMAIL PROTECTED]>:
>
>
>
> > Hello,
>
> > I have two models: User and News. Each element in the News table has a
> > user associated with it (the author). How do I obtain the username of
> > the currently logged user? I have tried several things, but I can't
> > find where the session info is stored.
>
> > Thanks for your help!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Authentication: logged user data

2008-07-14 Thread Janoma

Hello,

I have two models: User and News. Each element in the News table has a
user associated with it (the author). How do I obtain the username of
the currently logged user? I have tried several things, but I can't
find where the session info is stored.

Thanks for your help!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Files folder?

2008-06-04 Thread Janoma

Hi everyone,

I'm new to CakePHP, and I've been trying to figure out how to do these
links in a proper way. Explicit links are not so useful to me, since
I'm developing in my own computer, but as soon as the host and domain
for the website are ready I'll have to upload it, and of course the
links to 'localhost' won't work (and I'm sure I'm not the only one).

For now the only thing I can think of is defining a constant
WEBROOT_URI pointing to http://localhost/my-website/app/webroot/,
which I'll have to change when I upload the website. However, it is
not clear to me whether this is a good solution. I suppose there is a
straightforward way of doing this, but I just don't know it.

Any comments? What am I not seeing?

PS: I'm not using .htaccess

On Apr 9, 8:38 am, G Kramer <[EMAIL PROTECTED]> wrote:
> I think I can answer my own question now (which was pretty easy, once
> I "got it").    You have to construct the links to thefiles
> explicitly:  ie, html->link("click 
> here","http://www.mydomain.com/files/example.pdf";).   Or, on a system without 
> mod_rewrite, thelink
> would be to:  http://mydomain.com/app/webroot/files/example.pdf";
>
> I had been trying to build thelinklike this:
> html->link("click here","/files/example.pdf")
>
> bit thelinkCake constructs does notlinkto the file ... it tries tolinkto a 
> "files" controller", leading to the error I was getting (and
> on my system without mod_write it includes index.php in the url, which
> again leads to a problem).
>
> That's my theory at least.  Linkto thefilesdirectly, and you're OK.
>
> -Greg Kramer
>
> On Apr 8, 10:50 pm, G Kramer <[EMAIL PROTECTED]> wrote:
>
>
>
> > Perfect.  I got it now.  It works as you indicated with no missing
> > controller error.
>
> > Side question, how would you get this to work if you weren't using
> > mod_rewrite (anything in the routes.php that you could configure for
> > that?).   Mostly just curious...
>
> > Thanks,
> > G Kramer
>
> > On Apr 7, 5:24 am, "Steven M. Parker" <[EMAIL PROTECTED]> wrote:
>
> > > The answer to this is that the mod_rewrite (.htaccess)filesare
> > > already setup to handle this. If you access a file hosted in /app/
> > > webroot/files/example.pdf from the URLwww.example.com/files/example.pdf,
> > > it will redirect you to example.com/app/webroot/files/example.pdf. If
> > > however the file doesn't exist, then cake will try to parse it as a
> > > request for a controller.
>
> > > Notice the couple of lines in app/webroot/.htaccess saying "!-f" and
> > > "!-d"? That's a test to see if the request is already a file, or a
> > > directory...and if so, just let the request pass through. Otherwise,
> > > redirect to cake's controller processing.
>
> > > Steven
>
> > > On Apr 5, 10:08 am, G Kramer <[EMAIL PROTECTED]> wrote:
>
> > > > I'm sorry, I have a similar issue and don't quite follow this
> > > > response.   This says I don't need to change the routes/rewrite rules
> > > > but yet I still will get an error ... aren't we talking about how to
> > > > get rid of the error?
>
> > > > Thanks,
> > > > Greg K
>
> > > > On Mar 28, 11:51 am, Sliv <[EMAIL PROTECTED]> wrote:
>
> > > > >filesis a specialfolderthat should work for direct links tofiles
> > > > > within it, without needing to modify routes/rewrite from a default
> > > > > install, but you will get a filescontroller error for a badlink

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---