Re: Using PHPTAL with Cake: PhptalView class

2007-04-26 Thread Daniel Kvasnicka jr.

The article has been approved and is available:
http://bakery.cakephp.org/articles/view/using-phptal-for-templates-phptalview-class


--~--~-~--~~~---~--~~
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 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: Using PHPTAL with Cake: PhptalView class

2007-04-24 Thread Daniel Kvasnicka jr.

Yes, I'm using PHP5 because PHPTAL is only for PHP5 (except some
ancient versions). Removing try/catch would not help.

Dan

On Apr 24, 12:14 am, Larry E. Masters aka PhpNut [EMAIL PROTECTED]
wrote:
 You need to change your view class on cakeforge. You are using php 5 syntax
 with your try and catch code block.

 The article itself is still in queue so the link above is not valid until it
 is approved by an admin...

 --
 /**
 * @author Larry E. Masters
 * @var string $userName
 * @param string $realName
 * @returns string aka PhpNut
 * @access  public
 */

 On 4/23/07, Daniel Kvasnicka jr. [EMAIL PROTECTED] wrote:



  Hi folks,
  I know a few people were talking about this, but I haven't found any
  solution, so I've took View and derived a simple PhptalView class from
  it. It enables you to use PHPTAL templating engine with Cake.

  It's really siple, but it works for my views and layouts. Read more at

 http://bakery.cakephp.org/articles/view/using-phptal-for-templates-ph...

  Waitin' for your comments,
  Dan


--~--~-~--~~~---~--~~
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 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: Using PHPTAL with Cake: PhptalView class

2007-04-24 Thread Daniel Kvasnicka jr.

On Apr 24, 1:46 am, Mariano Iglesias [EMAIL PROTECTED]
wrote:
 And also it would be good to include source code inside article content
 instead of linking to cakeforge, easier for readers to get the code.


Would it? To be honest, that's the thing I hate most about articles,
when source code is posted directly to the article.

Dan


--~--~-~--~~~---~--~~
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 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: Using PHPTAL with Cake: PhptalView class

2007-04-24 Thread Daniel Kvasnicka jr.

On Apr 24, 10:06 am, Mariano Iglesias [EMAIL PROTECTED]
wrote:
 Yes it would. I'm a reader and it would help me.


I added the source as a second page. Just wanted to say, that I'm a
reader too :)...and that's why I dont like when the source is mixed
with the text. I find an article, download the source and then work
with it, refering back to the article for information on how to work
with the code. And when I'm confronted with tens of lines of code
(which I've already downloaded and seen) every time I need to look in
the article just for some usage info, it really annoys me.

Posting it as a second page is a good compromise.

Dan


--~--~-~--~~~---~--~~
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 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
-~--~~~~--~~--~--~---



Using PHPTAL with Cake: PhptalView class

2007-04-23 Thread Daniel Kvasnicka jr.

Hi folks,
I know a few people were talking about this, but I haven't found any
solution, so I've took View and derived a simple PhptalView class from
it. It enables you to use PHPTAL templating engine with Cake.

It's really siple, but it works for my views and layouts. Read more at
http://bakery.cakephp.org/articles/view/using-phptal-for-templates-phptalview-class

Waitin' for your comments,
Dan


--~--~-~--~~~---~--~~
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 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: Cake app not running, index.php offered for download

2007-04-21 Thread Daniel Kvasnicka jr.

Problem solved, Cake couldn't connect to MySQL through a port number I
was given by client. Port number removed, works like a charm.

Dan

On Apr 20, 3:08 pm, byBartus [EMAIL PROTECTED] wrote:
 I was having similar problem, so i defined ('DEBUG', 2) in core.php in
 the live app and magically it worked, then set again DEBUG to 0 and
 still working. Why? I do not still understand, but did the trick for
 me.

 Ps. My app is in a subdomain, which needs that the Document Root to be
 app/webroot.


--~--~-~--~~~---~--~~
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 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: Cake app not running, index.php offered for download

2007-04-20 Thread Daniel Kvasnicka jr.

Hey Poncho,
I'm sure the server can handle PHP somehow. I've replaced /app/webroot/
index.php with another 'index.php' with only phpinfo() in it and I got
the output without problems...so there is something in Cake that's not
behaving :( Unfortunately, I have no chance to see apache2.conf/
httpd.conf, since the server is not their own, it's a regular paid
hosting.
I've already emailed their webmaster so I hope we'll find a way.

Thanx for your thoughts anyway,
Dan

On Apr 19, 11:17 pm, Poncho [EMAIL PROTECTED] wrote:
 Hey Daniel,

 Are you sure the Apache Server is configured to catch .php files and
 use them in DirectoryIndex?
 It sounds like you need to add something like the following to
 a .htaccess file:

 LoadModule php4_modulelibexec/httpd/libphp4.so
 AddModule mod_php4.c
 IfModule mod_php4.c
 AddType application/x-httpd-php .php
 AddType application/x-httpd-php-source .phps

 IfModule mod_dir.c
 DirectoryIndex index.html index.php
 /IfModule
 /IfModule

 Add those lines to a .htaccess file in the www directory of the
 webserver and see if that helps. Reply here if you don't get the
 desired result.

 Cheers;
 Poncho

 On Apr 19, 7:46 pm, Daniel Kvasnicka jr.

 [EMAIL PROTECTED] wrote:
  I've installed a Cake app to a client's server and I'm getting a blank
  screen with mod_rewrite and index.php offered for download without
  mod_rewrite.

  The server is using PHP 4.4.2/Apache (http://www.rosamusic.cz/
  info.php). On my local Apache and on a test server the app was working
  like a charm. Could it be that I and the test server have PHP5
  installed? I'm not aware of using any PHP5-specific features in this
  app...

  Anybody experienced something similar?


--~--~-~--~~~---~--~~
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 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
-~--~~~~--~~--~--~---



Cake app not running, index.php offered for download

2007-04-19 Thread Daniel Kvasnicka jr.

I've installed a Cake app to a client's server and I'm getting a blank
screen with mod_rewrite and index.php offered for download without
mod_rewrite.

The server is using PHP 4.4.2/Apache (http://www.rosamusic.cz/
info.php). On my local Apache and on a test server the app was working
like a charm. Could it be that I and the test server have PHP5
installed? I'm not aware of using any PHP5-specific features in this
app...

Anybody experienced something similar?


--~--~-~--~~~---~--~~
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 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: acl.php

2006-12-12 Thread Daniel Kvasnicka jr.

Try executing 'php-cgi' or 'php5-cgi' instead of php. That solved the
problem for me.

Dan

On Dec 6, 7:15 am, Falagar [EMAIL PROTECTED] wrote:
 Hi,

 I tried to use the ACL example from the manual and ran into problems. I
 have 1.1.11.4064 installed, the database connection is set up and I
 have successfully baked stuff with bake.php.

 When running php acl.php initdb -app blabla from /cake/scripts the
 following error occurs:

 Fatal error: Class 'Configure' not found in
 C:\www\xampp\htdocs\cake\cake\libs\m
 odel\datasources\dbo_source.php on line 84

 I added the following lines in acl.php in a futile attempt to fix it:

 require ('cake'.DS.'dispatcher.php');
 require ('cake'.DS.'libs'.DS.'configure.php');

 and the errors go away, however, now I get HTML code back telling me
 this (abridged):

 h1Missing Database Table/h1
 p class=errorNo Database table for model Aro (expected aros),
 create it first./p
 pspan class=noticestrongNotice:/strong If you want to
 customize this e
 rror message, create
 blabla\views/errors/missing_table.thtml./span/p

 I looked a little bit further into the script but got lost. The
 $command variable is set to 'initdb' correctly, but the switch
 statement is never reached. Nor is the line: if (ACL_CLASSNAME !=
 'DB_ACL'){.

 But isn't the whole point of initdb to create those tables in the
 database? Or am I just totally misunderstanding something? Any help is
 greatly appreciated.
 
 Mike


--~--~-~--~~~---~--~~
 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 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
-~--~~~~--~~--~--~---