Strongly Typed from Model to View

Discussion about the open-source Phalanger [?] project.

Re: Strongly Typed from Model to View

Postby tleslie » August 31st, 2012, 10:44 am

when i download the zip
3.0.0. 3406

and do setup,
it says:
Microsoft .net fw 4.0 full (already installed)
Phalanger and IIS int. (already installed, click to repair or remove).
Phalanger Tools for VS "install latest version of phalanger int. for vs 2010".

so i want to install the phalanger tools for vs? which i thought was installed
just before .... ?

-tl
tleslie
 
Posts: 32
Joined: August 3rd, 2012, 4:42 am

Re: Strongly Typed from Model to View

Postby tleslie » August 31st, 2012, 10:46 am

ok, tried to click on the phalanger tools for vs,
it says already installed.
So i have run totally out of options :)

-tl
tleslie
 
Posts: 32
Joined: August 3rd, 2012, 4:42 am

Re: Strongly Typed from Model to View

Postby Jakub Misek » August 31st, 2012, 10:49 am

Actually Phalanger 3.0.0.3406 fixes some of your issues reported earlier.

I don't know which version of Phalanger you use, try to update Phalanger (not Phalanger Tools)
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: Strongly Typed from Model to View

Postby tleslie » August 31st, 2012, 10:53 am

ok uninstalled phalanger 3.0..... from aug 1,
installed latest, does seem to help,
i get intellisense back and phpDoc seem to do something,
i will know more once i play with it.
Not sure about formatting at this point, but that isn't as important to me.

-tl
tleslie
 
Posts: 32
Joined: August 3rd, 2012, 4:42 am

Re: Strongly Typed from Model to View

Postby Jakub Misek » August 31st, 2012, 10:58 am

Great! Sorry for the troubles - Phalanger and Phalanger Tools are very closely coupled; based on this, we will improve the 'experience' in the next update :-)

There are lot of new features, if you'll have any question or idea, feel free to create new topic.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: Strongly Typed from Model to View

Postby tleslie » August 31st, 2012, 11:29 am

I guess good news.
So the GetModel()->....
works now, instead of me doing a object assign first to "set" the variable
type for intellisense, the phpDoc is working,
but it doens't work form my GetModel $model set up where
the $model is a Dictionary<String, object>.
I want do do
GetModel()["Object name"] to retrieve, but it doesn't like this syntax.
if i make $model a class that in turn contains other classes, and so on,
it not only allows me to intellisense those classes contained in $model,
but it lets me intellisense into those classes, and classes of those classes,
without having anymore then just the one phpDoc comment spec. what
the $model is. So this is nice, down side is, doesn't seem to support
Dictionary :( or i don't know how to specify an item out of a Dictionary
(with key) in a way phalanager/php wants.

formatting seems to work, the little that i tested it.

-tl
tleslie
 
Posts: 32
Joined: August 3rd, 2012, 4:42 am

Re: Strongly Typed from Model to View

Postby Jakub Misek » August 31st, 2012, 12:08 pm

GetModel()["Object name"] isn't valid PHP syntax.

This should work:
Code: Select all
$model = GetModel();
$model["Object name"] =


Phalanger can handle IDictionary and IList types and work with them as with standard PHP array. Note IntelliSense doesn't support arrays yet.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Previous

Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 28 guests

cron

User Control Panel

Login

Who is online

In total there are 28 users online :: 0 registered, 0 hidden and 28 guests (based on users active over the past 5 minutes)
Most users ever online was 287 on March 29th, 2024, 6:11 am

Users browsing this forum: No registered users and 28 guests