[MODULE] phundament 2 A content management module for Yii
#41
Posted 21 March 2010 - 02:25 AM
In the database the tables are in lower case. Check this too
#42
Posted 21 March 2010 - 02:38 AM
It's fixed in version 1.1.0.3 that will be released today (it's already in SVN)
#43
Posted 21 March 2010 - 02:55 AM
Spyros, on 21 March 2010 - 02:38 AM, said:
It's fixed in version 1.1.0.3 that will be released today (it's already in SVN)
Yes, setting to always TRUE as you suggested worked out the problem - Srbac now goes online!
I'll check the latest SVN and report how successful everything is, thanks again!!
P.S. Using the SVN already and trying to see or assing roles to users it does not autorefresh the listbox with roles that are assinged to selected user:
http://localhost/pii...sign/lang/en_us
#44
Posted 21 March 2010 - 03:20 AM
Are the same as in pii configuration?
#45
Posted 21 March 2010 - 03:27 AM
I found out this problem occurs only in IE, FireFox works well!
Thanks for fast problem solving again!!
#46
Posted 21 March 2010 - 03:27 PM
I'll check that out, too!
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#47
Posted 23 March 2010 - 12:40 PM
some notes from my side:
When running srbac as a sub-module inside phundament (pii) there are a few glitches.
I.e. SBaseController uses Yii::app()->getModule('srbac') which does not find srbac.
I attached a patch for SBaseController which changes all getModule() into findModule().
Index: SBaseController.php
===================================================================
--- SBaseController.php (Revision 177)
+++ SBaseController.php (Arbeitskopie)
@@ -44,11 +44,11 @@
}
//Allow access if srbac is not installed yet
- if(!Yii::app()->getModule('srbac')->isInstalled()) {
+ if(!Yii::app()->findModule('srbac')->isInstalled()) {
return true;
}
//Allow access when srbac is in debug mode
- if(Yii::app()->getModule('srbac')->debug){
+ if(Yii::app()->findModule('srbac')->debug){
return true;
}
// Check for srbac access
@@ -77,9 +77,9 @@
$error["message"] = "Error while trying to access " .$mod."/".$this->id."/".$this->action->id."." ;
//You may change the view for unauthorized access
if(Yii::app()->request->isAjaxRequest) {
- $this->renderPartial(Yii::app()->getModule('srbac')->notAuthorizedView,array("error"=>$error));
+ $this->renderPartial(Yii::app()->findModule('srbac')->notAuthorizedView,array("error"=>$error));
} else {
- $this->render(Yii::app()->getModule('srbac')->notAuthorizedView,array("error"=>$error));
+ $this->render(Yii::app()->findModule('srbac')->notAuthorizedView,array("error"=>$error));
}
return false;
}
@Spyros:
Running stuff as a submodule seem to be a little bumpy in yii.
To return piiModule I created a static helper function. So I can change this later on, if needed.
I also strongly recommend to set config>modules.pii.modules.srbac.debug to false.
Just fixed in SVN ...
Best regards,
schmunk
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#48
Posted 23 March 2010 - 12:58 PM
Some comments from my side:
!1. Somehow, when running fresh installed Pii(full web app) on IE7 it does not show the first <<Home>> page content, what may the problem be and how to solve it?
!2. I was playing with main menu, created some new item("Page" as called in Pii) and then tried to make it to be first one on menu with changing PageRank, but unsuccessfully. Is there simple way to deal with that?
!3. Trying Lithron pdf rendering like in demo:
-> http://localhost/pii...pii/default/pdf
-> Throws Parse error: parse error in C:\wamp\www\pii\modules\pii\views\pdf-templates\test.php on line 79
P.S. Keep up the good work, together Pii is getting stronger and stronger ;-)
By the way, when stable version of Pii(including Yii 1.1.1) in planned to be released?
Thanks again,
CoLT
#49
Posted 23 March 2010 - 01:24 PM
CoLT, on 23 March 2010 - 12:58 PM, said:
Sound like some IE only
<?php echo PiiHelper::clearfloat(); ?>
before first cellmanager
CoLT, on 23 March 2010 - 12:58 PM, said:
Ooops, a bug.
Untested fix: in views/layouts/main.php
add this in line 23
$criteria->order = "rank";
Yeah, I know, logic should not be in a view, but this is just an example.
CoLT, on 23 March 2010 - 12:58 PM, said:
-> http://localhost/pii...pii/default/pdf
-> Throws Parse error: parse error in C:\wamp\www\pii\modules\pii\views\pdf-templates\test.php on line 79
I refactored a lot of code here ... should be ready again with the next release.
CoLT, on 23 March 2010 - 12:58 PM, said:
By the way, when stable version of Pii(including Yii 1.1.1) in planned to be released?
Hopefully this week, SVN is already on 1.1.1
Thanks for your feedback and best regards,
schmunk
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#50
Posted 23 March 2010 - 02:22 PM
+-1. Yep, it fixed the IE problem. I did not know where to put it right so I placed it before every $content appear at main.php(C:\wamp\www\pii\views\layouts) line 48 (please inform if there is better place to put it)
-2. Hmm it didn't solve the problem
It's very very welcome and is important that the logic in Pii is(and is getting more efficient each release) in the WYSIWYG style, so non developer can manage content easily :-)
+-3. Lithron is really one the of the most interesting extension to try!
Waiting for stable release, and will continue testing of Pii
#51
Posted 23 March 2010 - 02:38 PM
By the way, what web browsers Pii is tested on? Could help you with testing on IE, FFox, Opera and some others
Simplicity and compatibility is highly valued on the market
-5. Started one project on Pii, when trying Yiic shell:
{not a bug, but those thing are not welcome to simple users}
PHP Notice: Undefined variable: installUrl in C:\wamp\www\pii\index.php on line 125
{error when creating model}
>> model client
PHP Fatal error: Call to a member function getDb() on a non-object in C:\wamp\w
ww\pii\lib\yii\cli\commands\shell\ModelCommand.php on line 260
Fatal error: Call to a member function getDb() on a non-object in C:\wamp\www\pi
i\lib\yii\cli\commands\shell\ModelCommand.php on line 260
#52
Posted 25 March 2010 - 11:05 AM
-6. After registering new user email validation should be possible only once. Problems occurs when accessing verification URL e.g. from email accidentally and account looses its Active status to Verified :-)
-7. I faces this type of problem - when using some BAD email(e.g. domain is not registered, timeout, bad email address, etc.) account is being registered instead of occurring error screen. By the way, what is better way to deal with error screens because that ugly PHP Error will definitely scare the user
+8. How to update personal information for a registered user himself?
+9. a) Front-end first link Home, does not support I18N ?
?10. Future offer, ability to choose whether to use instant user-registration or token verified, and to automatically give user "member" role at srbac if it's chosen to be default RBAC module. Also send all registration information after confirming registration(e.g login, pass etc).
Thanks for you attention to this highly valued project!
CoLT
#53
Posted 25 March 2010 - 04:00 PM
CoLT, on 23 March 2010 - 02:38 PM, said:
By the way, what web browsers Pii is tested on? Could help you with testing on IE, FFox, Opera and some others
Simplicity and compatibility is highly valued on the market
FF should be running fine, I'll fix IE ... let me know if there are issues with Opera.
!5. Started one project on Pii, when trying Yiic shell:
{not a bug, but those thing are not welcome to simple users}
PHP Notice: Undefined variable: installUrl in C:\wamp\www\pii\index.php on line 125
CoLT, on 23 March 2010 - 02:38 PM, said:
>> model client
PHP Fatal error: Call to a member function getDb() on a non-object in C:\wamp\w
ww\pii\lib\yii\cli\commands\shell\ModelCommand.php on line 260
Fatal error: Call to a member function getDb() on a non-object in C:\wamp\www\pi
i\lib\yii\cli\commands\shell\ModelCommand.php on line 260
Did you set an db component?
Or use
./yiic install config/local.php
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#54
Posted 25 March 2010 - 04:10 PM
CoLT, on 25 March 2010 - 11:05 AM, said:
Can you create a ticket for this: https://sourceforge....ament/newticket
CoLT, on 25 March 2010 - 11:05 AM, said:
Can you provide an example email address?
CoLT, on 25 March 2010 - 11:05 AM, said:
Should be the route /pii/piiUser/userupdate but I think it's buggy at the moment.
https://sourceforge....ament/ticket/13
CoLT, on 25 March 2010 - 11:05 AM, said:
Not a bug, it's a feature.
You can create all needed pages with PiiPage, but if you do a blank install, you have to display a page.
So you can simply delete it from the component config in the layout.
Note: There's also Mbmenu, which is uses for the phundament admin menu, but it's much harder to use it with PiiPage.
CoLT, on 25 March 2010 - 11:05 AM, said:
A planned feature.
CoLT, on 25 March 2010 - 11:05 AM, said:
CoLT
Thanks again
Best regards,
schmunk
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#55
Posted 26 March 2010 - 12:22 PM
'user'=>array(
// enable cookie-based authentication
'class'=>'PiiWebUser',
'allowAutoLogin'=>true,
),
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#56
Posted 26 March 2010 - 12:43 PM
schmunk, on 26 March 2010 - 12:22 PM, said:
'user'=>array(
// enable cookie-based authentication
'class'=>'PiiWebUser',
'allowAutoLogin'=>true,
),Thanks fixed User Update issue!
Also a feature could be to sent email regarding successfully completed update, and also if User enters same information of email and password and press Update nothing happens(could throw message eg. "No information was updated").
I believe I can update any of User info by that form, right?
Now I'm going to check all your previously posted solutions to previous bugs and notices
Thanks again!
CoLT
#57
Posted 26 March 2010 - 12:57 PM
schmunk, on 25 March 2010 - 04:00 PM, said:
!5. Started one project on Pii, when trying Yiic shell:
{not a bug, but those thing are not welcome to simple users}
PHP Notice: Undefined variable: installUrl in C:\wamp\www\pii\index.php on line 125
Did you set an db component?
Or use
./yiic install config/local.php
!4. Yes, both IE and Opera does not show shadows on main frame.
!5. For a project I use standalone Pii version, so I just installed it by Docs manual. And there I have a DB of additional ~8tables and I was trying to model one of the table by Yiic model Clients unsuccessfully with the error posted above
95% of errors, bugs, features and notices I'm posting here is regarding standalone Pii version, except private messages of certain Pii module issues
Thanks
CoLT
#58
Posted 26 March 2010 - 01:15 PM
schmunk, on 25 March 2010 - 04:10 PM, said:
Can you provide an example email address?
Should be the route /pii/piiUser/userupdate but I think it's buggy at the moment.
https://sourceforge....ament/ticket/13
Not a bug, it's a feature.
You can create all needed pages with PiiPage, but if you do a blank install, you have to display a page.
So you can simply delete it from the component config in the layout.
Note: There's also Mbmenu, which is uses for the phundament admin menu, but it's much harder to use it with PiiPage.
A planned feature.
Thanks again
Best regards,
schmunk
6. Registered this and one more tickets ;-) Hope to solve it quickly with stable Pii(Yii 1.1.1.) version! Waiting with impatience :-]
7. eg. unknownadd@nottheregisteredmain.com
8. Thanks for solving it! ;-) Additional question was asked in the previous message ;-)
9. Thanks for explanation! Very good approach! :-) I like Pii with this style ;-)
schmunk said:
Could you explain it in a more details?
10. Waiting for the future releases ;-)
Thanks
CoLT
#59
Posted 26 March 2010 - 03:32 PM
CoLT
#60
Posted 28 March 2010 - 07:57 PM
I've just uploaded beta 5, with numerous updates.
Get it here:
https://sourceforge....ament2-app/2.1/
- renamed Pii to P2 (classes, database ...)
- fixed installation on Windows (XAMPP)
- further IE improvements
- srbac is no longer a submodule of phundament (moved to ./modules)
- many more ...
Make sure you do a fresh install for now (testing), because of the renaming.
I'll provide an upgrade guide later and also the standalone module version.
Best regards,
schmunk
This post has been edited by schmunk: 29 March 2010 - 07:00 AM
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari

Help















