Sqlserver requires a database connection

2012-01-24 Thread zal1en
Hi, I'm trying to access a second MS SQL database with cakephp 2.0.5 on Linux. I have setup an Sqlserver datasource in Config/database.php public $msdb = array( 'datasource' = 'Database/Sqlserver', 'persistent' = false, 'host' = 'xxx.xxx.xxx.xxx', 'port' = '1433',

issue with CSS in Cake 2.1

2012-01-24 Thread Ernesto
Hi all. i'm having a strange issue with Cake 2.1 HtmlHelper and CSS files. here's my layout ?php echo $this-Html-docType(); ? html xmlns=http://www.w3.org/1999/xhtml; head ?php echo $this-Html-charset(); echo title. $this-fetch(title) ./title; echo $this-Html-css(myapp); echo

Re: issue with CSS in Cake 2.1

2012-01-24 Thread Ernesto
Ops sry i pasted the wrong layout ?php echo $this-Html-docType(); ? html xmlns=http://www.w3.org/1999/xhtml; head ?php echo $this-Html-charset(); echo title. $this-fetch(title) ./title; $this-Html-css(generic, null, array(inline = false)); $this-Html-css(common/form, null, array(inline =

CSS issue in Cake 2.1 and themes

2012-01-24 Thread Ernesto
Hi all i'm experiencing a strange behavior with Cake 2.1 and HtmlHelper. if the url contains the action the css links get all messed up. link rel=stylesheet type=text/css href=

Re: issue with CSS in Cake 2.1

2012-01-24 Thread Justin Edwards
I believe you have a problem with your base in your .htaccess file On Jan 24, 2012 7:17 AM, Ernesto e.fanz...@gmail.com wrote: Ops sry i pasted the wrong layout ?php echo $this-Html-docType(); ? html xmlns=http://www.w3.org/1999/xhtml; head ?php echo $this-Html-charset(); echo title.

Re: CSS issue in Cake 2.1 and themes

2012-01-24 Thread jeremyharris
What's the code you are using? It should be as simple as $this-Html-css('generic'); from within the theme. -- 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: CSS issue in Cake 2.1 and themes

2012-01-24 Thread Ernesto
i found the issue :) the culprit was webroot's htaccess the last rewriterule has been updated. now it's working flawlessly -- 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: issue with CSS in Cake 2.1

2012-01-24 Thread Ernesto
you're right :) i updated the webroot's htaccess and now everything is ok Thanks -- 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: captcha problem

2012-01-24 Thread Daniel
Show us some code, try to describe in more detail what you are doing and where you think it is going wrong then we might be more likely to help you. I have a captcha working nicely in CakePHP 2.0, I followed the approach on this page:

Re: Including JQuery

2012-01-24 Thread Daniel
Even just this worked for me: public $helpers = array('Js'); Correct me if I am wrong, but I think it defaults to Jquery. -- 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: Including JQuery

2012-01-24 Thread Sam Sherlock
thats correct If you do not declare a specific engine, the jQuery engine will be used as the default. from the Book - S On 24 January 2012 16:54, Daniel danwgr...@gmail.com wrote: Even just this worked for me: public $helpers = array('Js'); Correct me if I am wrong, but I think it

Re: captcha problem

2012-01-24 Thread xparm...@yahoo.com
Yes I did use Jquery and javascript to reload the captcha and append some versioning to the captcha image. I have solved the problem. I made a controller and an action with the captcha code. Thanks guys for the help. Is it just me or somebody else find the cakephp docs not good structured. It

Re: problem with international numbers

2012-01-24 Thread schulte.christ...@googlemail.com
Well, Ive messed up a lot. After a night of sleep I found several bugs and solved the problem. The question is closed. Christian -- 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

Re: Sqlserver requires a database connection

2012-01-24 Thread rchavik
Try my fork of the datasources plugin: https://github.com/rchavik/datasources/tree/mssql-2.0 This uses 1.3 style DboSource, and uses mssql (and freetds ??) to connect to sqlserver. Be advised though, that I have not tested this extensively. Last time I run test, transactions is not

purpose of FormHelper::postButton()

2012-01-24 Thread euromark
What is the purpose of the new 2.x method FormHelper::postButton($title, $url, $options = array()) If the whole element is 'style' = 'display:none;' and cannot be modified to be visible. The documentation doesnt state why it needs to stay invisible. It would be handy if it could also be

_cake_model_ cache was unable to write - Apc cache

2012-01-24 Thread elogic
I have copied a cakephp setup from one server to another and now I am getting the following errrors, any idea what it might be? I have set the permissisons on the app/tmp folders so that wasn't it. It's cakephp 2.0.5. Thanks Warning (512): _cake_model_ cache was unable to write

my domain on shared host justhost is not displaying flash messages

2012-01-24 Thread varai
My domain on the shared host is not displaying any flash messages. It is displaying fine on my local server. I have the following in the students_controller: function add(){ $this-Session-setFlash('Your child\'s admission has been received. We will send you an email shortly.'); } I