Yii Framework Forum: Fresh Yii Boilerplate Project Reports An Error - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Fresh Yii Boilerplate Project Reports An Error Rate Topic: ***** 1 Votes

#1 User is offline   Marina K 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 04-October 12
  • Location:Russia

Posted 13 October 2012 - 03:47 AM

I've generated a new project using the Yii-​​boilerplate(Haml branch), but there is an error:

Quote

Use of undefined constant HAMLPHP_ROOT - assumed 'HAMLPHP_ROOT' in \protected\extensions\yiihppie\vendors\HamlPHP\src\HamlPHP\Lang\Nodes\DoctypeNode.php(3).
<?php define('HAMLPHP_ROOT', dirname(__FILE__).DIRECTORY_SEPARATOR); in \yii-boilerplate\protected\extensions\yiihppie\vendors\HamlPHP\src\HamlPHP\Config.php

Any advices on how to solve it?
0

#2 User is offline   Marina K 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 04-October 12
  • Location:Russia

Posted 13 October 2012 - 10:52 AM

Finally I've managed to resolve the issue. The problem was that \yii-boilerplate\protected\extensions\yiihppie\vendors\HamlPHP\src\HamlPHP\HamlPHP.php includes wrong Config.php

require_once 'Config.php';


It actually includes Config.php from the Pear directory, not from the current one. So I've specified it unambigiously as

require_once dirname(__FILE__) . '/Config.php';


and it works.
0

#3 User is offline   ande zake 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 31-December 12

Posted 03 January 2013 - 08:33 PM

Hai marina, I am new in yii.. could u give me some guidence how to install or configure yii boilerplate ???
I'm so confuse .. :-[

tx before ... :rolleyes:
0

#4 User is offline   leo4all 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 31
  • Joined: 01-April 13
  • Location:Alajuela, Costa Rica

Posted 03 April 2013 - 10:59 AM

Same here, doesn anyone can give another step by step, am confuse, with wich files should be config.

and affter that if I want to upload to server what another changes should I made and wich files should be delete it. (security concers)

I am newbie on Yii, so patiente with me ok hehe.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users